eeschema: fix crash when changing the GAL engine, especially if the grid is shown.
GetGAL()->DrawGrid() was called when switching the engine, outside a paint event, thus creating a crash (at least on Windows) probably because the new Gal stuff was not fully initialized.
This commit is contained in:
parent
3fcd959757
commit
554b31bb2a
|
@ -463,7 +463,6 @@ void SCH_BASE_FRAME::CommonSettingsChanged( bool aEnvVarsChanged, bool aTextVars
|
|||
|
||||
GetCanvas()->GetView()->GetPainter()->GetSettings()->LoadColors( colorSettings );
|
||||
GetCanvas()->GetGAL()->SetAxesColor( colorSettings->GetColor( LAYER_SCHEMATIC_GRID_AXES ) );
|
||||
GetCanvas()->GetGAL()->DrawGrid();
|
||||
|
||||
GetCanvas()->GetView()->UpdateAllItems( KIGFX::ALL );
|
||||
GetCanvas()->GetView()->RecacheAllItems();
|
||||
|
|
Loading…
Reference in New Issue