diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2010-04-10 15:21:01 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2010-04-10 15:21:01 +0000 |
| commit | 20dae7a7ce078ec4e0cd5c808c21eba4d549ddc7 (patch) | |
| tree | a514593bbb8fd8b50942c1ef49579e0773501d7c /src/selection-chemistry.cpp | |
| parent | fix bug 168275 by removing a ceil on document height and width in pdf/eps/ps ... (diff) | |
| download | inkscape-20dae7a7ce078ec4e0cd5c808c21eba4d549ddc7.tar.gz inkscape-20dae7a7ce078ec4e0cd5c808c21eba4d549ddc7.zip | |
* improve boundingbox calculation: include strokecaps.
* increasing boundingbox calculation precision for selection to marker, selection to pattern and fit canvas to selection
(bzr r9307)
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 730467ee5..cc153aa71 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -2266,7 +2266,7 @@ void sp_selection_to_marker(SPDesktop *desktop, bool apply) } sp_document_ensure_up_to_date(doc); - Geom::OptRect r = selection->bounds(); + Geom::OptRect r = selection->bounds(SPItem::RENDERING_BBOX); boost::optional<Geom::Point> c = selection->center(); if ( !r || !c ) { return; @@ -2390,7 +2390,7 @@ sp_selection_tile(SPDesktop *desktop, bool apply) } sp_document_ensure_up_to_date(doc); - Geom::OptRect r = selection->bounds(); + Geom::OptRect r = selection->bounds(SPItem::RENDERING_BBOX); if ( !r ) { return; } @@ -3173,7 +3173,7 @@ fit_canvas_to_selection(SPDesktop *desktop, bool with_margins) desktop->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Select <b>object(s)</b> to fit canvas to.")); return false; } - Geom::OptRect const bbox(desktop->selection->bounds()); + Geom::OptRect const bbox(desktop->selection->bounds(SPItem::RENDERING_BBOX)); if (bbox) { doc->fitToRect(*bbox, with_margins); return true; |
