1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 00:29:41 +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)
Init();
// do nothing if no colours set.
if( (iBrush != -1) && ( iPen !=-1))
if( (iBrush == -1) && ( iPen ==-1))
return;
wxColour col = wxColour(0,0,0);
if( iBrush !=-1 ){