diff options
| author | Eric Greveson <eric@greveson.co.uk> | 2013-07-10 10:53:56 +0000 |
|---|---|---|
| committer | Eric Greveson <eric@greveson.co.uk> | 2013-07-10 10:53:56 +0000 |
| commit | f01122d8c2a4a697eea3b725cb90740442e171f4 (patch) | |
| tree | e82369fc947020f42251fd9bf264ba7d7cebf3c0 /src/document.cpp | |
| parent | Added "dbus-name" command line option to allow a D-Bus bus name other than (diff) | |
| parent | Small refactor of align and distribute to reduce complexity. (diff) | |
| download | inkscape-f01122d8c2a4a697eea3b725cb90740442e171f4.tar.gz inkscape-f01122d8c2a4a697eea3b725cb90740442e171f4.zip | |
Merge from trunk
(bzr r12402.1.2)
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 5 |
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 |
