summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2011-06-23 22:22:07 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2011-06-23 22:22:07 +0000
commitab143333746e25648b253f13c0539adff089b1b6 (patch)
tree5a025875e0e107b07b13970374afbd78cb021af7 /src/document.cpp
parentUpdate 2Geom to pull in integer rectangle class (diff)
downloadinkscape-ab143333746e25648b253f13c0539adff089b1b6.tar.gz
inkscape-ab143333746e25648b253f13c0539adff089b1b6.zip
Remove more of libnr
(bzr r10347.1.2)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 90fc4c635..5bcf1bf40 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -40,6 +40,7 @@
#include <gtk/gtk.h>
#include <string>
#include <cstring>
+#include <2geom/transforms.h>
#include "desktop.h"
#include "dir-util.h"
@@ -647,7 +648,7 @@ void SPDocument::fitToRect(Geom::Rect const &rect, bool with_margins)
Geom::Translate const tr(
Geom::Point(0, old_height - rect_with_margins.height())
- - to_2geom(rect_with_margins.min()));
+ - rect_with_margins.min());
root->translateChildItems(tr);
if(nv) {