From 4a28645869fd5d1031b510a9f46bb4c540d3203c Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Fri, 28 Jul 2017 22:54:36 -0400 Subject: [PATCH] Fix bug found by Bill Wharrie in hightlighting of labels --- src/LabelTrack.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/LabelTrack.cpp b/src/LabelTrack.cpp index a2329c030..1a41f823a 100644 --- a/src/LabelTrack.cpp +++ b/src/LabelTrack.cpp @@ -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); } }