Minor tweaks to support wx3.3
This commit is contained in:
parent
42933c1c12
commit
a87fada9e5
|
@ -293,6 +293,7 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
|
|||
# Find wxWidgets multilib base libraries.
|
||||
find_library(WX_base${_DBG}
|
||||
NAMES
|
||||
wxbase33${_UCD}${_DBG}
|
||||
wxbase32${_UCD}${_DBG}
|
||||
wxbase31${_UCD}${_DBG}
|
||||
wxbase30${_UCD}${_DBG}
|
||||
|
@ -308,6 +309,7 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
|
|||
foreach(LIB net odbc xml)
|
||||
find_library(WX_${LIB}${_DBG}
|
||||
NAMES
|
||||
wxbase33${_UCD}${_DBG}_${LIB}
|
||||
wxbase32${_UCD}${_DBG}_${LIB}
|
||||
wxbase31${_UCD}${_DBG}_${LIB}
|
||||
wxbase30${_UCD}${_DBG}_${LIB}
|
||||
|
@ -325,6 +327,7 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
|
|||
# Find wxWidgets monolithic library.
|
||||
find_library(WX_mono${_DBG}
|
||||
NAMES
|
||||
wx${_PF}${_UNV}33${_UCD}${_DBG}
|
||||
wx${_PF}${_UNV}32${_UCD}${_DBG}
|
||||
wx${_PF}${_UNV}31${_UCD}${_DBG}
|
||||
wx${_PF}${_UNV}30${_UCD}${_DBG}
|
||||
|
@ -343,6 +346,7 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
|
|||
stc ribbon propgrid webview)
|
||||
find_library(WX_${LIB}${_DBG}
|
||||
NAMES
|
||||
wx${_PF}${_UNV}33${_UCD}${_DBG}_${LIB}
|
||||
wx${_PF}${_UNV}32${_UCD}${_DBG}_${LIB}
|
||||
wx${_PF}${_UNV}31${_UCD}${_DBG}_${LIB}
|
||||
wx${_PF}${_UNV}30${_UCD}${_DBG}_${LIB}
|
||||
|
|
|
@ -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
|
||||
&& wxString( m_currentSymbol.GetSubLibraryName().wx_str() ) == aSubLibName )
|
||||
return;
|
||||
|
||||
m_currentSymbol.SetLibNickname( aLibraryName );
|
||||
|
|
|
@ -243,7 +243,7 @@ void CADSTAR_PCB_ARCHIVE_PLUGIN::ensureLoadedLibrary( const wxString& aLibraryPa
|
|||
|
||||
for( std::unique_ptr<FOOTPRINT>& fp : footprints )
|
||||
{
|
||||
footprintMap.insert( { fp->GetFPID().GetLibItemName(), std::move( fp ) } );
|
||||
footprintMap.insert( { fp->GetFPID().GetLibItemName().wx_str(), std::move( fp ) } );
|
||||
}
|
||||
|
||||
m_cache.insert( { aLibraryPath, std::move( footprintMap ) } );
|
||||
|
|
Loading…
Reference in New Issue