diff --git a/src/document.cpp b/src/document.cpp
index 24b6edd20bff95e9766a4fc60002873a5f7c5a93..716260b28a4b2ab0df3b0bce13bab8b0b934b803 100644 (file)
--- a/src/document.cpp
+++ b/src/document.cpp
sp_document_set_width(this, w, &px);
sp_document_set_height(this, h, &px);
- NR::translate const tr(NR::Point(0, (old_height - h))
- - rect.min());
+ Geom::Translate const tr(Geom::Point(0, (old_height - h))
+ - to_2geom(rect.min()));
SP_GROUP(root)->translateChildItems(tr);
SPNamedView *nv = sp_document_namedview(this, 0);
if(nv) {