Skip to content

Commit 531fec0

Browse files
committed
Fix copy constructor for pal::FeaturePart
1 parent 55ead85 commit 531fec0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core/pal/feature.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ namespace pal
7878
: PointSet( other )
7979
, mLF( other.mLF )
8080
{
81-
Q_FOREACH ( FeaturePart* part, other.mHoles )
81+
Q_FOREACH ( FeaturePart* hole, other.mHoles )
8282
{
83-
mHoles << new FeaturePart( *part );
83+
mHoles << new FeaturePart( *hole );
84+
mHoles.last()->holeOf = this;
8485
}
8586
}
8687

0 commit comments

Comments
 (0)