summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorEric Greveson <eric@greveson.co.uk>2013-07-10 10:53:56 +0000
committerEric Greveson <eric@greveson.co.uk>2013-07-10 10:53:56 +0000
commitf01122d8c2a4a697eea3b725cb90740442e171f4 (patch)
treee82369fc947020f42251fd9bf264ba7d7cebf3c0 /src/document.cpp
parentAdded "dbus-name" command line option to allow a D-Bus bus name other than (diff)
parentSmall refactor of align and distribute to reduce complexity. (diff)
downloadinkscape-f01122d8c2a4a697eea3b725cb90740442e171f4.tar.gz
inkscape-f01122d8c2a4a697eea3b725cb90740442e171f4.zip
Merge from trunk
(bzr r12402.1.2)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 706710cfc..0e9c43fe4 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -611,6 +611,11 @@ Geom::Point SPDocument::getDimensions() const
return Geom::Point(getWidth(), getHeight());
}
+Geom::OptRect SPDocument::preferredBounds() const
+{
+ return Geom::OptRect( Geom::Point(0, 0), getDimensions() );
+}
+
/**
* Given a Geom::Rect that may, for example, correspond to the bbox of an object,
* this function fits the canvas to that rect by resizing the canvas