summaryrefslogtreecommitdiffstats
path: root/src/sp-clippath.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-05-29 02:23:48 +0000
committerJabiertxof <jtx@jtx>2017-05-29 02:23:48 +0000
commit18619e3328e070c5d59f12c4d19fa09713fc4700 (patch)
treef1575b0048c4a138719ea9210a054babae609d56 /src/sp-clippath.cpp
parentupdate to trunk (diff)
downloadinkscape-18619e3328e070c5d59f12c4d19fa09713fc4700.tar.gz
inkscape-18619e3328e070c5d59f12c4d19fa09713fc4700.zip
Handling hide
(bzr r15706)
Diffstat (limited to 'src/sp-clippath.cpp')
-rw-r--r--src/sp-clippath.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/sp-clippath.cpp b/src/sp-clippath.cpp
index b371e15b2..16b769d53 100644
--- a/src/sp-clippath.cpp
+++ b/src/sp-clippath.cpp
@@ -35,7 +35,6 @@ struct SPClipPathView {
Inkscape::DrawingItem *arenaitem;
Geom::OptRect bbox;
};
-
static SPClipPathView* sp_clippath_view_new_prepend(SPClipPathView *list, unsigned int key, Inkscape::DrawingItem *arenaitem);
static SPClipPathView* sp_clippath_view_list_remove(SPClipPathView *list, SPClipPathView *view);
@@ -227,15 +226,20 @@ void SPClipPath::hide(unsigned int key) {
SP_ITEM(&child)->invoke_hide(key);
}
}
-
+ bool is_hided = false;
for (SPClipPathView *v = display; v != NULL; v = v->next) {
+ if (!v->arenaitem->getClip()) {
+ is_hided = true;
+ }
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) {
+ return;
+ }
g_assert_not_reached();
}