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
|
||||
DisplayError( frame, e.what() );
|
||||
bool use_gal = SwitchBackend( GAL_TYPE_CAIRO );
|
||||
frame->UseGalCanvas( use_gal );
|
||||
|
||||
if( frame )
|
||||
frame->UseGalCanvas( use_gal );
|
||||
}
|
||||
|
||||
if( frame )
|
||||
|
|
Loading…
Reference in New Issue