diff --git a/src/document.cpp b/src/document.cpp
index ef04735ef6252f78aeaf95c658eb0e04abbfe617..71f607b6524dcdc2e88a1c974c565243c1d830fc 100644 (file)
--- a/src/document.cpp
+++ b/src/document.cpp
#include "prefs-utils.h"
#include "libavoid/router.h"
#include "libnr/nr-rect.h"
-#include "sp-item-transform.h"
+#include "sp-item-group.h"
#include "display/nr-arena-item.h"
if (root) {
sp_object_invoke_release(root);
- g_object_unref(G_OBJECT(root));
+ sp_object_unref(root);
root = NULL;
}
sp_document_set_height(this, h, &unit);
NR::translate tr = NR::translate::translate(-rect.x0,-(rect.y0 + (h - old_height)));
- sp_item_move_rel((SPItem *) root, tr);
+ static_cast<SPGroup *>(root)->translateChildItems(tr);
}
void sp_document_set_uri(SPDocument *document, gchar const *uri)