summaryrefslogtreecommitdiffstats
path: root/src/sp-clippath.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2017-05-29 15:33:21 +0000
committerjabiertxof <info@marker.es>2017-05-29 15:33:21 +0000
commit38d796905f3b0e467d9e653c51f2993870f033cf (patch)
tree82b5ec0e1537b8545efa838633c191a84e91fc91 /src/sp-clippath.cpp
parentHandling hide (diff)
downloadinkscape-38d796905f3b0e467d9e653c51f2993870f033cf.tar.gz
inkscape-38d796905f3b0e467d9e653c51f2993870f033cf.zip
Allow temp hide clip
(bzr r15707)
Diffstat (limited to 'src/sp-clippath.cpp')
-rw-r--r--src/sp-clippath.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/sp-clippath.cpp b/src/sp-clippath.cpp
index 16b769d53..619f7c65e 100644
--- a/src/sp-clippath.cpp
+++ b/src/sp-clippath.cpp
@@ -226,18 +226,16 @@ void SPClipPath::hide(unsigned int key) {
SP_ITEM(&child)->invoke_hide(key);
}
}
- bool is_hided = false;
+ bool no_clippathview = true;
for (SPClipPathView *v = display; v != NULL; v = v->next) {
- if (!v->arenaitem->getClip()) {
- is_hided = true;
- }
+ no_clippathview = false;
if (v->key == key) {
/* We simply unref and let item to manage this in handler */
display = sp_clippath_view_list_remove(display, v);
return;
}
}
- if (is_hided) {
+ if (no_clippathview) {
return;
}
g_assert_not_reached();