[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/krita/ui/flake
From: Cyrille Berger <cyb () lepi ! org>
Date: 2009-09-06 13:26:09
Message-ID: 1252243569.135894.22643.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1020496 by berger:
Fix: allow to undo the creation of the shape layer created when adding a shape in a \
krita image
BUG:164625
M +3 -1 kis_shape_controller.cpp
--- trunk/koffice/krita/ui/flake/kis_shape_controller.cpp #1020495:1020496
@@ -57,6 +57,8 @@
#include <KoTextDocumentLayout.h>
#include <KoTextShapeData.h>
#include <KoDataCenter.h>
+#include <commands/kis_image_layer_add_command.h>
+#include <kis_undo_adapter.h>
typedef QMap<KisNodeSP, KoShape*> KisNodeMap;
@@ -296,8 +298,8 @@
// a signal that is caught by us (the document) and the
// layerbox and makes sure the new layer is in the
// layer-shape map and in the layerbox
+ m_d->image->undoAdapter()->addCommand( new KisImageLayerAddCommand( \
m_d->image, shapeLayer, m_d->image->rootLayer(), 0) );
- m_d->image->addNode(shapeLayer, m_d->image->rootLayer());
if (canvas) {
canvas->view()->nodeManager()->activateNode(shapeLayer);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic