Zones: layer set must be initialized after m_isRuleArea

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6814
This commit is contained in:
Jon Evans 2020-12-24 11:29:23 -05:00
parent 98c437e70f
commit d13de9c6c1
1 changed files with 1 additions and 1 deletions

View File

@ -119,9 +119,9 @@ void ZONE::InitDataFromSrcInCopyCtor( const ZONE& aZone )
m_cornerSmoothingType = aZone.m_cornerSmoothingType;
m_cornerRadius = aZone.m_cornerRadius;
m_zoneName = aZone.m_zoneName;
SetLayerSet( aZone.GetLayerSet() );
m_priority = aZone.m_priority;
m_isRuleArea = aZone.m_isRuleArea;
SetLayerSet( aZone.GetLayerSet() );
m_doNotAllowCopperPour = aZone.m_doNotAllowCopperPour;
m_doNotAllowVias = aZone.m_doNotAllowVias;