mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 07:43:54 +02:00
Fix regression, loss of distinct colour in Scrub Ruler
Wrong conditional test for "no colours set".
This commit is contained in:
@@ -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 ){
|
||||||
|
|||||||
Reference in New Issue
Block a user