summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/document.cpp b/src/document.cpp
index a473daa3c..2a9ad9144 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -267,7 +267,7 @@ unsigned long SPDocument::serial() const {
void SPDocument::queueForOrphanCollection(SPObject *object) {
g_return_if_fail(object != NULL);
- g_return_if_fail(SP_OBJECT_DOCUMENT(object) == this);
+ g_return_if_fail(object->document == this);
sp_object_ref(object, NULL);
_collection_queue = g_slist_prepend(_collection_queue, object);
@@ -550,7 +550,7 @@ void SPDocument::setWidth(gdouble width, const SPUnit *unit)
root->viewBox.x1 = root->viewBox.x0 + (root->width.computed / old_computed) * (root->viewBox.x1 - root->viewBox.x0);
}
- SP_OBJECT (root)->updateRepr();
+ root->updateRepr();
}
void SPDocument::setHeight(gdouble height, const SPUnit *unit)
@@ -576,7 +576,7 @@ void SPDocument::setHeight(gdouble height, const SPUnit *unit)
root->viewBox.y1 = root->viewBox.y0 + (root->height.computed / old_computed) * (root->viewBox.y1 - root->viewBox.y0);
}
- SP_OBJECT (root)->updateRepr();
+ root->updateRepr();
}
gdouble SPDocument::getHeight() const