Init icon scale when reading it from PCB prefs.

Fixes: lp:1804926
* https://bugs.launchpad.net/kicad/+bug/1804926
This commit is contained in:
Jeff Young 2018-11-24 15:28:07 +00:00
parent 908c2a37e5
commit 05d9f49d25
1 changed files with 4 additions and 3 deletions

View File

@ -567,11 +567,12 @@ void PGM_BASE::loadCommonSettings()
if( !m_common_settings->HasEntry( ICON_SCALE_KEY ) )
{
wxString value;
int temp;
wxString msg;
bool option;
pcbnewConfig->Read( "PcbIconScale", &value );
m_common_settings->Write( ICON_SCALE_KEY, value );
pcbnewConfig->Read( "PcbIconScale", &temp, 0 );
m_common_settings->Write( ICON_SCALE_KEY, temp );
pcbnewConfig->Read( ENBL_MOUSEWHEEL_PAN_KEY, &option, false );
m_common_settings->Write( ENBL_MOUSEWHEEL_PAN_KEY, option );