summaryrefslogtreecommitdiffstats
path: root/src/selection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/selection.cpp')
-rw-r--r--src/selection.cpp7
1 files changed, 6 insertions, 1 deletions
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<Geom::Point> 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 {