Fix bug: Render->Grid(Color) doesn't saved between kicad sessions.

Fixes: lp:1670084
https://bugs.launchpad.net/kicad/+bug/1670084
This commit is contained in:
jean-pierre charras 2017-04-01 11:48:02 +02:00
parent af88781262
commit 04e24282a8
1 changed files with 6 additions and 3 deletions

View File

@ -693,9 +693,12 @@ void EDA_DRAW_FRAME::LoadSettings( wxConfigBase* aCfg )
if( aCfg->Read( baseCfgName + ShowGridEntryKeyword, &btmp ) )
SetGridVisibility( btmp );
int itmp;
if( aCfg->Read( baseCfgName + GridColorEntryKeyword, &itmp ) )
SetGridColor( ColorFromInt( itmp ) );
// Read grid color:
COLOR4D wtmp = COLOR4D::UNSPECIFIED;
if( wtmp.SetFromWxString( aCfg->Read(
baseCfgName + GridColorEntryKeyword, wxT( "NONE" ) ) ) )
SetGridColor( wtmp );
aCfg->Read( baseCfgName + LastGridSizeIdKeyword, &m_LastGridSizeId, 0L );