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

List:       kde-commits
Subject:    [krita] libs/flake: Revert "Remove safe assert checking for shape managers"
From:       Boudewijn Rempt <null () kde ! org>
Date:       2018-07-26 9:15:51
Message-ID: E1ficND-0006Mm-SS () code ! kde ! org
[Download RAW message or body]

Git commit 3bd75fb26635adba81db9d1e2b6331ef8fb1e0ba by Boudewijn Rempt.
Committed on 26/07/2018 at 09:15.
Pushed by rempt into branch 'master'.

Revert "Remove safe assert checking for shape managers"

This reverts commit 899b02999e8146dd639f1bc1994b6632894f73cd.

M  +1    -1    libs/flake/KoShape.cpp

https://commits.kde.org/krita/3bd75fb26635adba81db9d1e2b6331ef8fb1e0ba

diff --git a/libs/flake/KoShape.cpp b/libs/flake/KoShape.cpp
index b1ec76230c3..40f88b3304e 100644
--- a/libs/flake/KoShape.cpp
+++ b/libs/flake/KoShape.cpp
@@ -174,7 +174,7 @@ KoShapePrivate::~KoShapePrivate()
         parent->removeShape(q);
     }
 =

-    if (!shapeManagers.isEmpty()) {
+    KIS_SAFE_ASSERT_RECOVER (shapeManagers.isEmpty()) {
         Q_FOREACH (KoShapeManager *manager, shapeManagers) {
             manager->shapeInterface()->notifyShapeDestructed(q);
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

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