Skip to content

Commit 6fa454c

Browse files
authored
Set the new clone as the parent for ofxSvgGroup (#8538)
1 parent 23ec9a5 commit 6fa454c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addons/ofxSvg/src/ofxSvgGroup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ class ofxSvgGroup : public ofxSvgElement {
418418
for( const auto& ptr : mChildren ) {
419419
if( ptr ) {
420420
auto newKid = ptr->clone();
421-
newKid->setParent(*this);
421+
newKid->setParent(*newEle);
422422
newEle->mChildren.push_back(newKid);
423423
}
424424
}

0 commit comments

Comments
 (0)