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:
parent
af88781262
commit
04e24282a8
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue