From 290410e3b0ef13947447f6026e18eba666f61aa6 Mon Sep 17 00:00:00 2001 From: Aaron Spike Date: Fri, 28 Apr 2006 04:14:59 +0000 Subject: fix translation for fit page the translation is now preserved across save by translating all child elements of the root instead of just translating the root itself. (bzr r602) --- src/document.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/document.cpp') diff --git a/src/document.cpp b/src/document.cpp index ef04735ef..eca4ab2dc 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -52,7 +52,7 @@ #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" @@ -499,7 +499,7 @@ void SPDocument::fitToRect(NRRect const & rect) 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(root)->translateChildItems(tr); } void sp_document_set_uri(SPDocument *document, gchar const *uri) -- cgit v1.2.3