diff options
| author | Andrius Ramanauskas <knutux@gmail.com> | 2006-04-21 07:11:19 +0000 |
|---|---|---|
| committer | knutux <knutux@users.sourceforge.net> | 2006-04-21 07:11:19 +0000 |
| commit | 80ee8504c6c33ebdbf25f1dbbae8f73864c644d3 (patch) | |
| tree | 30f81f44f0618c5be6ccec9b6d2a17789f092541 /src | |
| parent | fixing incorrect group children order (bug introduced with <switch> support) (diff) | |
| download | inkscape-80ee8504c6c33ebdbf25f1dbbae8f73864c644d3.tar.gz inkscape-80ee8504c6c33ebdbf25f1dbbae8f73864c644d3.zip | |
Bug-1474013 - switch works incorrectly with non SP_ITEM children
(bzr r561)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-switch.cpp | 2 |
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; |
