From c3175b45af9f9c94c6394d8e1fee52bcfb764667 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 2 Oct 2019 18:12:43 +0200 Subject: [PATCH] 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. --- gerbview/gerbview_frame.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gerbview/gerbview_frame.cpp b/gerbview/gerbview_frame.cpp index f512ffeac0..a01f703529 100644 --- a/gerbview/gerbview_frame.cpp +++ b/gerbview/gerbview_frame.cpp @@ -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();