Gerbview: fix incorrect canvas type saving after closing Gerbview.

Was due to the fact the canvas type was now saved into m_canvasType when opening Gerbview.
This commit is contained in:
jean-pierre charras 2019-10-02 18:12:43 +02:00
parent ac2373ae16
commit c3175b45af
1 changed files with 1 additions and 2 deletions

View File

@ -201,8 +201,7 @@ GERBVIEW_FRAME::GERBVIEW_FRAME( KIWAY* aKiway, wxWindow* aParent ):
SaveSettings( config() );
}
GetCanvas()->SwitchBackend( canvasType );
ActivateGalCanvas();
SwitchCanvas( canvasType );
// Enable the axes to match legacy draw style
auto& galOptions = GetGalDisplayOptions();