mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-20 14:20:06 +02:00
Fix bug found by Bill Wharrie in hightlighting of labels
This commit is contained in:
parent
0830234a0f
commit
4a28645869
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user