Pcbnew, export component placement: better string in menu (.gbr added).

Also fix 2 minor Coverity warnings.
This commit is contained in:
jean-pierre charras 2023-10-25 09:41:08 +02:00
parent 71475a4b56
commit 5bf241a53e
2 changed files with 4 additions and 0 deletions

View File

@ -163,7 +163,9 @@ void SCH_VIEW::DisplaySymbol( LIB_SYMBOL* aSymbol )
if( std::shared_ptr< LIB_SYMBOL > parent = aSymbol->GetRootSymbol().lock() )
drawnSymbol = parent.get();
else
{
wxCHECK( false, /* void */ );
}
}
for( LIB_ITEM& item : drawnSymbol->GetDrawItems() )

View File

@ -832,7 +832,9 @@ void SYMBOL_EDIT_FRAME::SetCurSymbol( LIB_SYMBOL* aSymbol, bool aUpdateZoom )
if( std::shared_ptr<LIB_SYMBOL> rootSymbol = m_symbol->GetRootSymbol().lock() )
rootSymbolName = rootSymbol->GetName();
else
{
wxCHECK( false, /* void */ );
}
int unit = GetUnit();
int convert = GetConvert();