diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-07-16 21:52:53 +0000 |
|---|---|---|
| committer | Javiertxo <jtx@jtx.marker.es> | 2013-07-16 21:52:53 +0000 |
| commit | 488bfe58fe622fbd7b0d93039d5dd014c69e7884 (patch) | |
| tree | fd4bf21c1ec55f4d8ca2f2b25a2087b057005cd1 /src/document.cpp | |
| parent | Update to trunk (diff) | |
| parent | Shape calculations. re-introduce grid of a smaller size. (http://article.gman... (diff) | |
| download | inkscape-488bfe58fe622fbd7b0d93039d5dd014c69e7884.tar.gz inkscape-488bfe58fe622fbd7b0d93039d5dd014c69e7884.zip | |
Update to trunk
(bzr r11950.1.125)
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 |
