Commit 263b8861 authored by Johan B. C. Engelen's avatar Johan B. C. Engelen Committed by Johan Engelen

Fix part of bug 733010, where fit page to drawing did not work the same as fit...

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)
parent 031979e1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment