Coverity fixes
This commit is contained in:
parent
1aca216f18
commit
1bc3f77d2e
|
@ -815,7 +815,7 @@ bool SYMBOL_VIEWER_FRAME::ReCreateSymbolList()
|
||||||
|
|
||||||
for( const LIB_SYMBOL* symbol : symbols )
|
for( const LIB_SYMBOL* symbol : symbols )
|
||||||
{
|
{
|
||||||
if( row->SupportsSubLibraries()
|
if( row && row->SupportsSubLibraries()
|
||||||
&& !subLib.IsSameAs( symbol->GetLibId().GetSubLibraryName() ) )
|
&& !subLib.IsSameAs( symbol->GetLibId().GetSubLibraryName() ) )
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -68,6 +68,10 @@ PCB_PROPERTIES_PANEL::PCB_PROPERTIES_PANEL( wxWindow* aParent, PCB_EDIT_FRAME* a
|
||||||
PG_CHECKBOX_EDITOR* cbEditor = new PG_CHECKBOX_EDITOR();
|
PG_CHECKBOX_EDITOR* cbEditor = new PG_CHECKBOX_EDITOR();
|
||||||
m_checkboxEditorInstance = static_cast<PG_CHECKBOX_EDITOR*>( wxPropertyGrid::RegisterEditorClass( cbEditor ) );
|
m_checkboxEditorInstance = static_cast<PG_CHECKBOX_EDITOR*>( wxPropertyGrid::RegisterEditorClass( cbEditor ) );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_checkboxEditorInstance = static_cast<PG_CHECKBOX_EDITOR*>( it->second );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue