[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra/krita_locking_langkamp] krita/ui/flake: Don't use flake locking for nodes that aren't shap
From: Sven Langkamp <sven.langkamp () gmail ! com>
Date: 2012-06-30 18:37:04
Message-ID: 20120630183704.89B49A60A6 () git ! kde ! org
[Download RAW message or body]
Git commit dc4d05ed28f4c7e88b7c4c9b5b325da3c8e3d74a by Sven Langkamp.
Committed on 30/06/2012 at 02:01.
Pushed by langkamp into branch 'krita_locking_langkamp'.
Don't use flake locking for nodes that aren't shape layers
M +5 -2 krita/ui/flake/kis_node_shape.cpp
http://commits.kde.org/calligra/dc4d05ed28f4c7e88b7c4c9b5b325da3c8e3d74a
diff --git a/krita/ui/flake/kis_node_shape.cpp b/krita/ui/flake/kis_node_sh=
ape.cpp
index e1e0def..d181cf9 100644
--- a/krita/ui/flake/kis_node_shape.cpp
+++ b/krita/ui/flake/kis_node_shape.cpp
@@ -87,8 +87,11 @@ bool KisNodeShape::checkIfDescendant(KoShapeLayer *activ=
eLayer)
=
void KisNodeShape::editabilityChanged()
{
- setGeometryProtected(!m_d->node->isEditable());
-
+ if (m_d->node->inherits("KisShapeLayer")) {
+ setGeometryProtected(!m_d->node->isEditable());
+ } else {
+ setGeometryProtected(false);
+ }
/**
* Editability of a child depends on the editablity
* of its parent. So when we change one's editability,
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic