summaryrefslogtreecommitdiffstats
path: root/src/object-hierarchy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object-hierarchy.cpp')
-rw-r--r--src/object-hierarchy.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/object-hierarchy.cpp b/src/object-hierarchy.cpp
index 55af55f28..e6a1618a7 100644
--- a/src/object-hierarchy.cpp
+++ b/src/object-hierarchy.cpp
@@ -70,10 +70,10 @@ void ObjectHierarchy::_addTop(SPObject *senior, SPObject *junior) {
g_assert(junior != NULL);
g_assert(senior != NULL);
- SPObject *object=SP_OBJECT_PARENT(junior);
+ SPObject *object = junior->parent;
do {
_addTop(object);
- object = SP_OBJECT_PARENT(object);
+ object = object->parent;
} while ( object != senior );
}
@@ -160,7 +160,7 @@ void ObjectHierarchy::_addBottom(SPObject *senior, SPObject *junior) {
g_assert(senior != NULL);
if ( junior != senior ) {
- _addBottom(senior, SP_OBJECT_PARENT(junior));
+ _addBottom(senior, junior->parent);
_addBottom(junior);
}
}