summaryrefslogtreecommitdiffstats
path: root/src/sp-switch.cpp
diff options
context:
space:
mode:
authorAndrius Ramanauskas <knutux@gmail.com>2006-04-21 07:11:19 +0000
committerknutux <knutux@users.sourceforge.net>2006-04-21 07:11:19 +0000
commit80ee8504c6c33ebdbf25f1dbbae8f73864c644d3 (patch)
tree30f81f44f0618c5be6ccec9b6d2a17789f092541 /src/sp-switch.cpp
parentfixing incorrect group children order (bug introduced with <switch> support) (diff)
downloadinkscape-80ee8504c6c33ebdbf25f1dbbae8f73864c644d3.tar.gz
inkscape-80ee8504c6c33ebdbf25f1dbbae8f73864c644d3.zip
Bug-1474013 - switch works incorrectly with non SP_ITEM children
(bzr r561)
Diffstat (limited to 'src/sp-switch.cpp')
-rw-r--r--src/sp-switch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-switch.cpp b/src/sp-switch.cpp
index 64aa868cc..d7bc6bba0 100644
--- a/src/sp-switch.cpp
+++ b/src/sp-switch.cpp
@@ -71,7 +71,7 @@ CSwitch::~CSwitch() {
SPObject *CSwitch::_evaluateFirst() {
for (SPObject *child = sp_object_first_child(_group) ; child != NULL ; child = SP_OBJECT_NEXT(child) ) {
- if (sp_item_evaluate(SP_ITEM(child)))
+ if (SP_IS_ITEM(child) && sp_item_evaluate(SP_ITEM(child)))
return child;
}
return NULL;