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:
parent
095bede3ba
commit
76b64afc26
|
@ -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() );
|
||||
|
||||
|
|
Loading…
Reference in New Issue