Commit 67d0f31e authored by Jan Hambrecht's avatar Jan Hambrecht

unbreak adding shapes to a container


svn path=/trunk/koffice/; revision=645150
parent 990c7965
......@@ -130,7 +130,7 @@ KoShapeContainer::~KoShapeContainer() {
void KoShapeContainer::addChild(KoShape *shape) {
Q_ASSERT(shape);
if(shape->parent() == this)
if(shape->parent() == this && iterator().contains( shape ) )
return;
if(d->children == 0)
d->children = new ChildrenData();
......
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