Init icon scale when reading it from PCB prefs.
Fixes: lp:1804926 * https://bugs.launchpad.net/kicad/+bug/1804926
This commit is contained in:
parent
908c2a37e5
commit
05d9f49d25
|
@ -567,11 +567,12 @@ void PGM_BASE::loadCommonSettings()
|
||||||
|
|
||||||
if( !m_common_settings->HasEntry( ICON_SCALE_KEY ) )
|
if( !m_common_settings->HasEntry( ICON_SCALE_KEY ) )
|
||||||
{
|
{
|
||||||
wxString value;
|
int temp;
|
||||||
|
wxString msg;
|
||||||
bool option;
|
bool option;
|
||||||
|
|
||||||
pcbnewConfig->Read( "PcbIconScale", &value );
|
pcbnewConfig->Read( "PcbIconScale", &temp, 0 );
|
||||||
m_common_settings->Write( ICON_SCALE_KEY, value );
|
m_common_settings->Write( ICON_SCALE_KEY, temp );
|
||||||
|
|
||||||
pcbnewConfig->Read( ENBL_MOUSEWHEEL_PAN_KEY, &option, false );
|
pcbnewConfig->Read( ENBL_MOUSEWHEEL_PAN_KEY, &option, false );
|
||||||
m_common_settings->Write( ENBL_MOUSEWHEEL_PAN_KEY, option );
|
m_common_settings->Write( ENBL_MOUSEWHEEL_PAN_KEY, option );
|
||||||
|
|
Loading…
Reference in New Issue