Fix ambiguous cast

This commit is contained in:
Marek Roszko 2023-10-13 19:26:16 -04:00
parent 49ced23ba8
commit 84df2c86ae
1 changed files with 2 additions and 2 deletions

View File

@ -884,8 +884,8 @@ void SYMBOL_VIEWER_FRAME::ClickOnLibList( wxCommandEvent& event )
void SYMBOL_VIEWER_FRAME::SetSelectedLibrary( const wxString& aLibraryName,
const wxString& aSubLibName )
{
if( m_currentSymbol.GetUniStringLibNickname() == aLibraryName &&
wxString( m_currentSymbol.GetSubLibraryName() ) == aSubLibName )
if( m_currentSymbol.GetUniStringLibNickname() == aLibraryName
&& m_currentSymbol.GetSubLibraryName().wx_str() == aSubLibName )
return;
m_currentSymbol.SetLibNickname( aLibraryName );