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;
|
FOOTPRINT_PREVIEW_PANEL* fpp = NULL;
|
||||||
|
|
||||||
|
try {
|
||||||
KIFACE* kiface = aKiway.KiFACE( KIWAY::FACE_PCB );
|
KIFACE* kiface = aKiway.KiFACE( KIWAY::FACE_PCB );
|
||||||
|
|
||||||
if( !kiface )
|
if( !kiface )
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
try {
|
|
||||||
fpp = static_cast<FOOTPRINT_PREVIEW_PANEL*>(
|
fpp = static_cast<FOOTPRINT_PREVIEW_PANEL*>(
|
||||||
kiface->CreateWindow( aPanel, FRAME_PCB_FOOTPRINT_PREVIEW, &aKiway ) );
|
kiface->CreateWindow( aPanel, FRAME_PCB_FOOTPRINT_PREVIEW, &aKiway ) );
|
||||||
} catch( ... )
|
} catch( ... )
|
||||||
|
|
Loading…
Reference in New Issue