Fix compile errors when wx3.x is built with --enable-stl
This commit is contained in:
+2
-2
@@ -1451,12 +1451,12 @@ EDA_COLOR_T ColorMix( EDA_COLOR_T aColor1, EDA_COLOR_T aColor2 )
|
||||
}
|
||||
|
||||
|
||||
EDA_COLOR_T ColorByName( const wxChar *aName )
|
||||
EDA_COLOR_T ColorByName( const wxString& aName )
|
||||
{
|
||||
// look for a match in the palette itself
|
||||
for( EDA_COLOR_T trying = BLACK; trying < NBCOLORS; trying = NextColor(trying) )
|
||||
{
|
||||
if( 0 == wxStricmp( aName, g_ColorRefs[trying].m_Name ) )
|
||||
if( 0 == aName.CmpNoCase( g_ColorRefs[trying].m_Name ) )
|
||||
return trying;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user