summaryrefslogtreecommitdiffstats
path: root/src/sp-switch.cpp
diff options
context:
space:
mode:
authorBryce Harrington <bryce@bryceharrington.org>2006-07-20 04:03:08 +0000
committerbryce <bryce@users.sourceforge.net>2006-07-20 04:03:08 +0000
commitc102a87dc4726085fb0f7360a5cf7c575e1fde59 (patch)
treee22de7843037e09ed525b3f3051b94cab398c493 /src/sp-switch.cpp
parentAn extension script to recolor markers to match the path stroke color (diff)
downloadinkscape-c102a87dc4726085fb0f7360a5cf7c575e1fde59.tar.gz
inkscape-c102a87dc4726085fb0f7360a5cf7c575e1fde59.zip
marker refactoring work
(bzr r1441)
Diffstat (limited to 'src/sp-switch.cpp')
-rw-r--r--src/sp-switch.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sp-switch.cpp b/src/sp-switch.cpp
index 6884c352f..65ecc5442 100644
--- a/src/sp-switch.cpp
+++ b/src/sp-switch.cpp
@@ -75,9 +75,9 @@ SPObject *CSwitch::_evaluateFirst() {
return NULL;
}
-GSList *CSwitch::_childList(bool add_ref, Action action) {
- if ( ActionGeneral != action ) {
- return CGroup::_childList(add_ref, action);
+GSList *CSwitch::_childList(bool add_ref, SPObject::Action action) {
+ if ( action != SPObject::ActionGeneral ) {
+ return _group->childList(add_ref, action);
}
SPObject *child = _evaluateFirst();
@@ -120,7 +120,7 @@ void CSwitch::_reevaluate(bool add_to_arena) {
_releaseLastItem(_cached_item);
SPItem * child;
- for ( GSList *l = _childList(false, ActionShow);
+ for ( GSList *l = _childList(false, SPObject::ActionShow);
NULL != l ; l = g_slist_remove (l, l->data))
{
SPObject *o = SP_OBJECT (l->data);
@@ -162,7 +162,7 @@ void CSwitch::_showChildren (NRArena *arena, NRArenaItem *ai, unsigned int key,
NRArenaItem *ac = NULL;
NRArenaItem *ar = NULL;
SPItem * child;
- GSList *l = _childList(false, ActionShow);
+ GSList *l = _childList(false, SPObject::ActionShow);
while (l) {
SPObject *o = SP_OBJECT (l->data);
if (SP_IS_ITEM (o)) {