pcbnew: Fix crash when GAL fallback fails in some cases
This commit is contained in:
parent
37c2743fec
commit
808a7d9483
|
@ -386,7 +386,9 @@ void PCB_DRAW_PANEL_GAL::OnShow()
|
||||||
// Fallback to software renderer
|
// Fallback to software renderer
|
||||||
DisplayError( frame, e.what() );
|
DisplayError( frame, e.what() );
|
||||||
bool use_gal = SwitchBackend( GAL_TYPE_CAIRO );
|
bool use_gal = SwitchBackend( GAL_TYPE_CAIRO );
|
||||||
frame->UseGalCanvas( use_gal );
|
|
||||||
|
if( frame )
|
||||||
|
frame->UseGalCanvas( use_gal );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( frame )
|
if( frame )
|
||||||
|
|
Loading…
Reference in New Issue