ZONE_CONTAINER copy ctor: add missing members in copy code.

Fixes #4050
https://gitlab.com/kicad/code/kicad/issues/4050
This commit is contained in:
jean-pierre charras 2020-03-15 09:39:42 +01:00
parent 095bede3ba
commit 76b64afc26
1 changed files with 5 additions and 0 deletions

View File

@ -134,6 +134,11 @@ void ZONE_CONTAINER::initDataFromSrcInCopyCtor( const ZONE_CONTAINER& aZone )
// members are expected non initialize in this.
// initDataFromSrcInCopyCtor() is expected to be called
// only from a copy constructor.
// Copy only useful EDA_ITEM flags:
m_Flags = aZone.m_Flags;
m_forceVisible = aZone.m_forceVisible;
m_isKeepout = aZone.m_isKeepout;
SetLayerSet( aZone.GetLayerSet() );