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