[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [calligra/calligra/2.9] krita/ui/flake: BUG:342415 Don't circularly delete node shapes
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2015-01-02 13:27:02
Message-ID: E1Y72Fq-00042q-Rj () scm ! kde ! org
[Download RAW message or body]

Git commit 1e38872532f441b3db52ab4acc1525f55c69f89b by Boudewijn Rempt.
Committed on 02/01/2015 at 13:25.
Pushed by rempt into branch 'calligra/2.9'.

BUG:342415 Don't circularly delete node shapes

M  +2    -0    krita/ui/flake/kis_node_shape.cpp

http://commits.kde.org/calligra/1e38872532f441b3db52ab4acc1525f55c69f89b

diff --git a/krita/ui/flake/kis_node_shape.cpp b/krita/ui/flake/kis_node_shape.cpp
index 7bd5f02..fe87c21 100644
--- a/krita/ui/flake/kis_node_shape.cpp
+++ b/krita/ui/flake/kis_node_shape.cpp
@@ -59,6 +59,8 @@ KisNodeShape::KisNodeShape(KisNodeSP node)
 
 KisNodeShape::~KisNodeShape()
 {
+    removeAllShapes();
+
     KoCanvasController *canvasController = KoToolManager::instance()->activeCanvasController();
     // If we're the active layer, we should tell the active selection we're dead meat.
     if (canvasController && canvasController->canvas() && canvasController->canvas()->shapeManager()) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic