Use superclass's copy c'tor from within subclass copy c'tor.

Fixes https://gitlab.com/kicad/code/kicad/issues/10481

(cherry picked from commit 8c758aeeb5)
This commit is contained in:
Jeff Young 2022-01-18 18:39:50 +00:00
parent 01f3a14dc3
commit b883eee911
1 changed files with 1 additions and 1 deletions

View File

@ -1347,7 +1347,7 @@ FP_ZONE::FP_ZONE( BOARD_ITEM_CONTAINER* aParent ) :
FP_ZONE::FP_ZONE( const FP_ZONE& aZone ) : FP_ZONE::FP_ZONE( const FP_ZONE& aZone ) :
ZONE( aZone.GetParent(), true ) ZONE( aZone )
{ {
InitDataFromSrcInCopyCtor( aZone ); InitDataFromSrcInCopyCtor( aZone );
} }