Fix 2 separate issues with saving the m_canvasType setting.

Fixes: lp:1811982
* https://bugs.launchpad.net/kicad/+bug/1811982
This commit is contained in:
Jeff Young 2019-01-17 20:25:11 +00:00
parent c3a295df1a
commit 7bec707160
2 changed files with 5 additions and 6 deletions

View File

@ -221,6 +221,7 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent,
m_showGridAxis = true; // show the grid origin axis m_showGridAxis = true; // show the grid origin axis
m_hotkeysDescrList = g_Module_Editor_Hotkeys_Descr; m_hotkeysDescrList = g_Module_Editor_Hotkeys_Descr;
m_FrameSize = ConvertDialogToPixels( wxSize( 500, 350 ) ); // default in case of no prefs m_FrameSize = ConvertDialogToPixels( wxSize( 500, 350 ) ); // default in case of no prefs
m_canvasType = aBackend;
// Give an icon // Give an icon
wxIcon icon; wxIcon icon;

View File

@ -437,14 +437,12 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
m_firstRunDialogSetting = 1; m_firstRunDialogSetting = 1;
SaveSettings( config() ); SaveSettings( config() );
} }
else
{
if( m_canvasType != EDA_DRAW_PANEL_GAL::GAL_TYPE_NONE ) if( m_canvasType != EDA_DRAW_PANEL_GAL::GAL_TYPE_NONE )
{ {
if( GetGalCanvas()->SwitchBackend( m_canvasType ) ) if( GetGalCanvas()->SwitchBackend( m_canvasType ) )
UseGalCanvas( true ); UseGalCanvas( true );
} }
}
enableGALSpecificMenus(); enableGALSpecificMenus();