From 38d796905f3b0e467d9e653c51f2993870f033cf Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Cenoz Date: Mon, 29 May 2017 17:33:21 +0200 Subject: Allow temp hide clip (bzr r15707) --- src/sp-clippath.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/sp-clippath.cpp') 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(); -- cgit v1.2.3