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

List:       kde-commits
Subject:    koffice/krita/ui/flake (silent)
From:       Dmitry Kazakov <dimula73 () gmail ! com>
Date:       2010-10-23 20:53:00
Message-ID: 20101023205300.3A57CAC897 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1189046 by dkazakov:

Fix readability

SVN_SILENT


 M  +19 -19    kis_shape_controller.cpp  


--- trunk/koffice/krita/ui/flake/kis_shape_controller.cpp #1189045:1189046
@@ -185,25 +185,6 @@
     m_d->image = image;
 }
 
-void KisShapeController::removeShape(KoShape* shape)
-{
-    // Nodes have their own way of death through slotNodeRemoved()
-    Q_ASSERT(!dynamic_cast<KisNodeShape*>(shape) &&
-             !dynamic_cast<KisLayerContainerShape*>(shape));
-
-    // Remove children shapes if any
-    KoShapeContainer * container = dynamic_cast<KoShapeContainer*>(shape);
-    if (container) {
-        foreach(KoShape * child, container->shapes()) {
-            removeShape(child);
-        }
-    }
-
-    shape->setParent(0);
-
-    m_d->doc->setModified(true);
-}
-
 static inline bool belongsToShapeSelection(KoShape* shape) {
     return dynamic_cast<KisShapeSelectionMarker*>(shape->userData());
 }
@@ -258,6 +239,25 @@
     m_d->doc->setModified(true);
 }
 
+void KisShapeController::removeShape(KoShape* shape)
+{
+    // Nodes have their own way of death through slotNodeRemoved()
+    Q_ASSERT(!dynamic_cast<KisNodeShape*>(shape) &&
+             !dynamic_cast<KisLayerContainerShape*>(shape));
+
+    // Remove children shapes if any
+    KoShapeContainer * container = dynamic_cast<KoShapeContainer*>(shape);
+    if (container) {
+        foreach(KoShape * child, container->shapes()) {
+            removeShape(child);
+        }
+    }
+
+    shape->setParent(0);
+
+    m_d->doc->setModified(true);
+}
+
 QMap<QString, KoDataCenterBase *> KisShapeController::dataCenterMap() const
 {
     return m_d->dataCenterMap;
[prev in list] [next in list] [prev in thread] [next in thread] 

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