[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Inserting flake shapes in Krita
From: Thomas Zander <zander () kde ! org>
Date: 2009-11-19 10:26:03
Message-ID: 200911191126.04103.zander () kde ! org
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic