Fix more utf8 comparisons

This commit is contained in:
Marek Roszko 2024-04-12 22:51:52 -04:00
parent c042b51be9
commit 8fb4901d4b
3 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,7 @@ void SYMBOL_TREE_SYNCHRONIZING_ADAPTER::updateLibrary( LIB_TREE_NODE_LIBRARY& aL
auto aliasIt = std::find_if( aliases.begin(), aliases.end(),
[&] ( const LIB_SYMBOL* a )
{
return a->GetName() == (*nodeIt)->m_LibId.GetLibItemName();
return a->GetName() == (*nodeIt)->m_LibId.GetLibItemName().wx_str();
} );
if( aliasIt != aliases.end() )

View File

@ -278,7 +278,7 @@ bool FP_TREE_SYNCHRONIZING_ADAPTER::GetAttr( wxDataViewItem const& aItem, unsign
switch( node->m_Type )
{
case LIB_TREE_NODE::LIBRARY:
if( node->m_Name == m_frame->GetLoadedFPID().GetLibNickname() )
if( node->m_Name == m_frame->GetLoadedFPID().GetLibNickname().wx_str() )
{
// mark the current library if it's collapsed
if( !m_widget->IsExpanded( ToItem( node ) ) )

View File

@ -2349,7 +2349,7 @@ void PCB_EDIT_FRAME::ExchangeFootprint( FOOTPRINT* aExisting, FOOTPRINT* aNew,
processTextItem( aExisting->Value(), aNew->Value(),
// reset value text only when it is a proxy for the footprint ID
// (cf replacing value "MountingHole-2.5mm" with "MountingHole-4.0mm")
aExisting->GetValue() == aExisting->GetFPID().GetLibItemName(),
aExisting->GetValue() == aExisting->GetFPID().GetLibItemName().wx_str(),
resetTextLayers, resetTextEffects, aUpdated );
// Copy fields in accordance with the reset* flags