Don't attempt to set active layer to a non-activated layer.

This commit is contained in:
Jeff Young 2020-08-23 22:47:35 +01:00
parent 605ddce651
commit 2c7093439e
1 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,8 @@ bool PCB_EDIT_FRAME::LoadProjectSettings()
opts.m_ZoneOpacity = localSettings.m_ZoneOpacity; opts.m_ZoneOpacity = localSettings.m_ZoneOpacity;
SetDisplayOptions( opts ); SetDisplayOptions( opts );
SetActiveLayer( localSettings.m_ActiveLayer ); if( GetBoard()->GetDesignSettings().IsLayerEnabled( localSettings.m_ActiveLayer ) )
SetActiveLayer( localSettings.m_ActiveLayer );
return true; return true;
} }