Commit 3094908e authored by Jan Hambrecht's avatar Jan Hambrecht

when adding a shape to a shape container,

remove the shape from its former parent shape

svn path=/trunk/koffice/; revision=594907
parent 768422de
......@@ -40,6 +40,8 @@ void KoShapeContainer::addChild(KoShape *shape) {
if(m_children == 0)
m_children = new ChildrenData();
if( shape->parent() )
shape->parent()->removeChild( shape );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment