Fixed crash when placing a component in standalone eeschema
Fixes: lp:1668157 * https://bugs.launchpad.net/kicad/+bug/1668157
This commit is contained in:
parent
d6097cf1aa
commit
9ead2b068b
|
@ -28,11 +28,12 @@ FOOTPRINT_PREVIEW_PANEL* FOOTPRINT_PREVIEW_PANEL::InstallOnPanel(
|
|||
{
|
||||
FOOTPRINT_PREVIEW_PANEL* fpp = NULL;
|
||||
|
||||
KIFACE* kiface = aKiway.KiFACE( KIWAY::FACE_PCB );
|
||||
if( !kiface )
|
||||
return NULL;
|
||||
|
||||
try {
|
||||
KIFACE* kiface = aKiway.KiFACE( KIWAY::FACE_PCB );
|
||||
|
||||
if( !kiface )
|
||||
return NULL;
|
||||
|
||||
fpp = static_cast<FOOTPRINT_PREVIEW_PANEL*>(
|
||||
kiface->CreateWindow( aPanel, FRAME_PCB_FOOTPRINT_PREVIEW, &aKiway ) );
|
||||
} catch( ... )
|
||||
|
|
Loading…
Reference in New Issue