1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 07:13:49 +01:00

Fix bug found by Bill Wharrie in hightlighting of labels

This commit is contained in:
Paul Licameli
2017-07-28 22:54:36 -04:00
parent 0830234a0f
commit 4a28645869

View File

@@ -853,7 +853,6 @@ void LabelTrack::Draw
highlight = highlightTrack && target->GetLabelNum() == i;
#endif
bool selected = mSelIndex == i;
const wxBrush &brush = dc.GetBrush();
if( selected )
dc.SetBrush( AColor::labelTextEditBrush );
@@ -862,7 +861,7 @@ void LabelTrack::Draw
labelStruct.DrawTextBox( dc, r );
if (highlight || selected)
dc.SetBrush( brush );
dc.SetBrush(AColor::labelTextNormalBrush);
}
}