Coverity fixes

This commit is contained in:
Jon Evans 2023-01-22 22:44:01 -05:00
parent 1aca216f18
commit 1bc3f77d2e
2 changed files with 5 additions and 1 deletions

View File

@ -815,7 +815,7 @@ bool SYMBOL_VIEWER_FRAME::ReCreateSymbolList()
for( const LIB_SYMBOL* symbol : symbols )
{
if( row->SupportsSubLibraries()
if( row && row->SupportsSubLibraries()
&& !subLib.IsSameAs( symbol->GetLibId().GetSubLibraryName() ) )
{
continue;

View File

@ -68,6 +68,10 @@ PCB_PROPERTIES_PANEL::PCB_PROPERTIES_PANEL( wxWindow* aParent, PCB_EDIT_FRAME* a
PG_CHECKBOX_EDITOR* cbEditor = new PG_CHECKBOX_EDITOR();
m_checkboxEditorInstance = static_cast<PG_CHECKBOX_EDITOR*>( wxPropertyGrid::RegisterEditorClass( cbEditor ) );
}
else
{
m_checkboxEditorInstance = static_cast<PG_CHECKBOX_EDITOR*>( it->second );
}
}