1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-26 14:41:14 +01:00
This commit is contained in:
Paul Licameli
2016-06-23 12:40:37 -04:00
parent 8d94cd7db5
commit d787703fd9

View File

@@ -1572,6 +1572,7 @@ void LabelTrack::HandleClick(const wxMouseEvent & evt,
// reset the highlight indicator
wxRect highlightedRect;
if (mSelIndex != -1) {
wxASSERT(mFontHeight >= 0); // should have been set up while drawing
// the rectangle of highlighted area
if (mXPos1 < mXPos2)
highlightedRect = wxRect(mXPos1, mLabels[mSelIndex]->y - mFontHeight / 2, (int)(mXPos2 - mXPos1 + 0.5), mFontHeight);