Nullptr defensive code.
Fixes https://gitlab.com/kicad/code/kicad/issues/11690
(cherry picked from commit 9b70308f5c
)
This commit is contained in:
parent
16d63b7772
commit
54c68080f5
|
@ -247,7 +247,11 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent
|
|||
|
||||
id.SetLibNickname( getCurNickname() );
|
||||
id.SetLibItemName( getCurFootprintName() );
|
||||
GetBoard()->Add( loadFootprint( id ) );
|
||||
|
||||
FOOTPRINT* footprint = loadFootprint( id );
|
||||
|
||||
if( footprint )
|
||||
GetBoard()->Add( footprint );
|
||||
}
|
||||
|
||||
drawPanel->DisplayBoard( m_pcb );
|
||||
|
|
Loading…
Reference in New Issue