1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Fix regression, loss of distinct colour in Scrub Ruler

Wrong conditional test for "no colours set".
This commit is contained in:
James Crook
2017-07-22 17:07:55 +01:00
parent 69655a14cd
commit cc46833125

View File

@@ -291,7 +291,7 @@ void AColor::UseThemeColour( wxDC * dc, int iBrush, int iPen )
if (!inited) if (!inited)
Init(); Init();
// do nothing if no colours set. // do nothing if no colours set.
if( (iBrush != -1) && ( iPen !=-1)) if( (iBrush == -1) && ( iPen ==-1))
return; return;
wxColour col = wxColour(0,0,0); wxColour col = wxColour(0,0,0);
if( iBrush !=-1 ){ if( iBrush !=-1 ){