summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-03-12 21:37:15 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-03-12 21:37:15 +0000
commit263b88617ed6ffbf0d87bb084338cc05e22213aa (patch)
tree97e04ad301d63937d59ab2809f5cda61a0b6594e
parentHope to fix a really dumb earlier commit by me... (diff)
downloadinkscape-263b88617ed6ffbf0d87bb084338cc05e22213aa.tar.gz
inkscape-263b88617ed6ffbf0d87bb084338cc05e22213aa.zip
Fix part of bug 733010, where fit page to drawing did not work the same as fit page to selection when all is selected. Fixes page resizing for arrow markers. Infinite line dots markers are still not correctly fit to.
Fixed bugs: - https://launchpad.net/bugs/733010 (bzr r10097)
-rw-r--r--src/selection-chemistry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index 5ae4205bb..082c447d0 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -3222,7 +3222,7 @@ fit_canvas_to_drawing(SPDocument *doc, bool with_margins)
doc->ensureUpToDate();
SPItem const *const root = SP_ITEM(doc->root);
- Geom::OptRect const bbox(root->getBounds(root->i2d_affine()));
+ Geom::OptRect const bbox(root->getBounds(root->i2d_affine(), SPItem::RENDERING_BBOX));
if (bbox) {
doc->fitToRect(*bbox, with_margins);
return true;