From 263b88617ed6ffbf0d87bb084338cc05e22213aa Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sat, 12 Mar 2011 22:37:15 +0100 Subject: 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) --- src/selection-chemistry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/selection-chemistry.cpp') 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; -- cgit v1.2.3