Don't attempt to set active layer to a non-activated layer.
This commit is contained in:
parent
605ddce651
commit
2c7093439e
|
@ -141,6 +141,7 @@ bool PCB_EDIT_FRAME::LoadProjectSettings()
|
||||||
opts.m_ZoneOpacity = localSettings.m_ZoneOpacity;
|
opts.m_ZoneOpacity = localSettings.m_ZoneOpacity;
|
||||||
SetDisplayOptions( opts );
|
SetDisplayOptions( opts );
|
||||||
|
|
||||||
|
if( GetBoard()->GetDesignSettings().IsLayerEnabled( localSettings.m_ActiveLayer ) )
|
||||||
SetActiveLayer( localSettings.m_ActiveLayer );
|
SetActiveLayer( localSettings.m_ActiveLayer );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue