1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Rectangle passed VRuler draw function agrees with hit test rectangle...

... that is, it is one wider than before.  But the drawing routine compensates
to make the picture no different.
This commit is contained in:
Paul Licameli
2018-10-30 14:57:19 -04:00
parent e70b240338
commit d0d88118cc
2 changed files with 13 additions and 15 deletions

View File

@@ -1123,12 +1123,13 @@ void TrackPanel::DrawEverythingElse(TrackPanelDrawingContext &context,
#endif
if (region.Contains(0, trackRect.y, GetLeftOffset(), trackRect.height)) {
wxRect rect = trackRect;
rect.x += GetVRulerOffset();
rect.y += kTopMargin;
rect.width = GetVRulerWidth();
rect.height -= (kTopMargin + kBottomMargin);
mTrackArtist->DrawVRuler(context, visibleT, rect, t->GetSelected());
wxRect rect{
GetVRulerOffset(),
trackRect.y + kTopMargin,
GetVRulerWidth() + 1,
trackRect.height - kSeparatorThickness
};
mTrackArtist->DrawVRuler( context, visibleT, rect, t->GetSelected() );
}
}