diff options
| author | Alvin Penner <penner@vaxxine.com> | 2012-02-04 21:32:10 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2012-02-04 21:32:10 +0000 |
| commit | e7281159491626d03d4a9d95b853ea90567e274a (patch) | |
| tree | caab0f4900c913715291afdece2151082ac1e7f4 /src/selection.cpp | |
| parent | cppcheck tells us: scanf without field width limits can crash with huge input... (diff) | |
| download | inkscape-e7281159491626d03d4a9d95b853ea90567e274a.tar.gz inkscape-e7281159491626d03d4a9d95b853ea90567e274a.zip | |
implement some switches between visual bbox and geometric bbox, depending on prefs (Bug 906952)
Fixed bugs:
- https://launchpad.net/bugs/906952
(bzr r10935)
Diffstat (limited to 'src/selection.cpp')
| -rw-r--r-- | src/selection.cpp | 7 |
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 { |
