CmpNoCase() returns 0 for a match (which evals to false as a bool).
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18087
(cherry picked from commit 26fe4c05e1
)
This commit is contained in:
parent
546ca18662
commit
6dd5422137
|
@ -907,11 +907,12 @@ bool ApplyModifier( double& value, const wxString& aString )
|
||||||
}
|
}
|
||||||
|
|
||||||
if( units.length()
|
if( units.length()
|
||||||
&& !units.CmpNoCase( wxT( "F" ) )
|
&& !units.IsSameAs( wxT( "F" ), false )
|
||||||
&& !units.CmpNoCase( wxT( "hz" ) )
|
&& !units.IsSameAs( wxT( "hz" ), false )
|
||||||
&& !units.CmpNoCase( wxT( "W" ) )
|
&& !units.IsSameAs( wxT( "W" ), false )
|
||||||
&& !units.CmpNoCase( wxT( "V" ) )
|
&& !units.IsSameAs( wxT( "V" ), false )
|
||||||
&& !units.CmpNoCase( wxT( "H" ) ) )
|
&& !units.IsSameAs( wxT( "A" ), false )
|
||||||
|
&& !units.IsSameAs( wxT( "H" ), false ) )
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue