summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-07-16 21:52:53 +0000
committerJaviertxo <jtx@jtx.marker.es>2013-07-16 21:52:53 +0000
commit488bfe58fe622fbd7b0d93039d5dd014c69e7884 (patch)
treefd4bf21c1ec55f4d8ca2f2b25a2087b057005cd1 /src/document.cpp
parentUpdate to trunk (diff)
parentShape calculations. re-introduce grid of a smaller size. (http://article.gman... (diff)
downloadinkscape-488bfe58fe622fbd7b0d93039d5dd014c69e7884.tar.gz
inkscape-488bfe58fe622fbd7b0d93039d5dd014c69e7884.zip
Update to trunk
(bzr r11950.1.125)
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