1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-18 14:41:20 +01:00

Bug 1414 - (Residual) Green triangles in scrub bar sometimes appear and sometimes don't

The residual bug was that the PlayHead triangle could appear when in the scrub ruler.  This was an 'off by 2' error in using the size of that region.
This commit is contained in:
James Crook
2016-08-21 17:02:17 +01:00
parent 26fac64ddd
commit 6383df2ff6

View File

@@ -2278,6 +2278,9 @@ void AdornedRulerPanel::UpdateRects()
#else
auto qpHeight = mScrubZone.height - scrubHeight;
bottom = &mScrubZone, topHeight = qpHeight;
// Increase scrub zone height so that hit testing finds it and
// not QP region, when on bottom 'edge'.
mScrubZone.height+=BottomMargin;
#endif
top->height = topHeight;