From koffice-devel Thu Nov 19 10:26:03 2009 From: Thomas Zander Date: Thu, 19 Nov 2009 10:26:03 +0000 To: koffice-devel Subject: Re: Inserting flake shapes in Krita Message-Id: <200911191126.04103.zander () kde ! org> X-MARC-Message: https://marc.info/?l=koffice-devel&m=125862652225468 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