1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 08:38:39 +02:00

Bug 2248 - Multi-view: can get numbers overflowing the Vertical Scale

This commit is contained in:
James Crook 2020-02-25 13:09:48 +00:00
parent 3653af42fc
commit 836bc36536

View File

@ -67,11 +67,20 @@ void WaveTrackVRulerControls::DoDraw( TrackVRulerControls &controls,
if ( !t )
return;
// Next code tests for a VRuler that is narrower than the rectangle
// we are drawing into. If so, it 'right aligns' the ruler into the
// rectangle.
// However, it seems this occurs only because vrulerSize is not up to
// date. That in turn caused Bug 2248, which was the labels being
// drawn further right than they should be (in MultiView mode).
// #ifdeffing out this code fixes bug 2248
#if 0
if ( t->vrulerSize.GetWidth() < rect.GetWidth()) {
int adj = rr.GetWidth() - t->vrulerSize.GetWidth();
rr.x += adj;
rr.width -= adj;
}
#endif
controls.UpdateRuler(rr);