1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-20 22:30:05 +02: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; highlight = highlightTrack && target->GetLabelNum() == i;
#endif #endif
bool selected = mSelIndex == i; bool selected = mSelIndex == i;
const wxBrush &brush = dc.GetBrush();
if( selected ) if( selected )
dc.SetBrush( AColor::labelTextEditBrush ); dc.SetBrush( AColor::labelTextEditBrush );
@ -862,7 +861,7 @@ void LabelTrack::Draw
labelStruct.DrawTextBox( dc, r ); labelStruct.DrawTextBox( dc, r );
if (highlight || selected) if (highlight || selected)
dc.SetBrush( brush ); dc.SetBrush(AColor::labelTextNormalBrush);
} }
} }