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:
jean-pierre charras 2022-06-24 15:49:28 +02:00
parent 3fcd959757
commit 554b31bb2a
1 changed files with 0 additions and 1 deletions

View File

@ -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();