From 84df2c86aeb87d0cebde6294a4d0e046e01c857f Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Fri, 13 Oct 2023 19:26:16 -0400 Subject: [PATCH] Fix ambiguous cast --- eeschema/symbol_viewer_frame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/symbol_viewer_frame.cpp b/eeschema/symbol_viewer_frame.cpp index a2f7e2752f..fd289839e4 100644 --- a/eeschema/symbol_viewer_frame.cpp +++ b/eeschema/symbol_viewer_frame.cpp @@ -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 );