From e7281159491626d03d4a9d95b853ea90567e274a Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Sat, 4 Feb 2012 16:32:10 -0500 Subject: implement some switches between visual bbox and geometric bbox, depending on prefs (Bug 906952) Fixed bugs: - https://launchpad.net/bugs/906952 (bzr r10935) --- src/selection.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/selection.cpp') diff --git a/src/selection.cpp b/src/selection.cpp index ff444fa98..412718994 100644 --- a/src/selection.cpp +++ b/src/selection.cpp @@ -425,7 +425,12 @@ boost::optional Selection::center() const { return first->getCenter(); } } - Geom::OptRect bbox = visualBounds(); + Geom::OptRect bbox; + if (Inkscape::Preferences::get()->getInt("/tools/bounding_box") == 0) { + bbox = visualBounds(); + } else{ + bbox = geometricBounds(); + } if (bbox) { return bbox->midpoint(); } else { -- cgit v1.2.3