eeschema: sanitize null pointer dereference of symbol filter. Used to trigger a segfault when mass-changing power symbol library refs
Fixes https://gitlab.com/kicad/code/kicad/issues/16225
This commit is contained in:
parent
ef2f72697b
commit
5af9d3395e
|
@ -59,7 +59,7 @@ DIALOG_SYMBOL_CHOOSER::DIALOG_SYMBOL_CHOOSER( SCH_BASE_FRAME* aParent, const LIB
|
||||||
if( aPreselect && aPreselect->IsValid() )
|
if( aPreselect && aPreselect->IsValid() )
|
||||||
m_chooserPanel->SetPreselect( *aPreselect );
|
m_chooserPanel->SetPreselect( *aPreselect );
|
||||||
|
|
||||||
if( aFilter->GetFilterPowerSymbols() )
|
if( aFilter && aFilter->GetFilterPowerSymbols() )
|
||||||
SetTitle( _( "Choose Power Symbol" ) );
|
SetTitle( _( "Choose Power Symbol" ) );
|
||||||
|
|
||||||
SetTitle( GetTitle() + wxString::Format( _( " (%d items loaded)" ),
|
SetTitle( GetTitle() + wxString::Format( _( " (%d items loaded)" ),
|
||||||
|
|
Loading…
Reference in New Issue