On Wednesday 18. November 2009 22.59.01 Sven Langkamp wrote: > So the question is how to insert flake shapes where the parent of the shape > is created while the shape is inserted. I suggest this fix; --- libs/flake/commands/KoShapeCreateCommand.cpp +++ libs/flake/commands/KoShapeCreateCommand.cpp @@ -66,6 +66,7 @@ void KoShapeCreateCommand::redo() d->shapeParent->addChild(d->shape); // the parent has to be there when it is added to the KoShapeControllerBase d->controller->addShape(d->shape); + d->shapeParent = d->shape->parent(); // update parent if the 'addShape' changed it d->deleteShape = false; } -- Thomas Zander _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel