Fix a bug in ZONE_CONTAINER copy constructor.

I fixed it in commit 26ebf3c96, and broke it in commit 04bae776.

Fixes: lp:1850758
https://bugs.launchpad.net/kicad/+bug/1850758
This commit is contained in:
jean-pierre charras 2019-11-05 09:13:43 +01:00
parent 42daf172fd
commit c34a584289
1 changed files with 4 additions and 0 deletions

View File

@ -168,6 +168,10 @@ void ZONE_CONTAINER::initDataFromSrcInCopyCtor( const ZONE_CONTAINER& aZone )
SetLocalFlags( aZone.GetLocalFlags() );
// Now zone type and layer are set, transfer net info
// (has meaning only for copper zones)
m_netinfo = aZone.m_netinfo;
SetNeedRefill( aZone.NeedRefill() );
}