diff options
Diffstat (limited to 'src/selection.cpp')
| -rw-r--r-- | src/selection.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/selection.cpp b/src/selection.cpp index 92b35bce7..5376311b1 100644 --- a/src/selection.cpp +++ b/src/selection.cpp @@ -27,6 +27,7 @@ #include "selection.h" #include "helper/recthull.h" #include "xml/repr.h" +#include "preferences.h" #include "sp-shape.h" #include "sp-path.h" @@ -390,6 +391,15 @@ Geom::OptRect Selection::visualBounds() const return bbox; } +Geom::OptRect Selection::preferredBounds() const +{ + if (Inkscape::Preferences::get()->getInt("/tools/bounding_box") == 0) { + return bounds(SPItem::VISUAL_BBOX); + } else { + return bounds(SPItem::GEOMETRIC_BBOX); + } +} + Geom::OptRect Selection::documentBounds(SPItem::BBoxType type) const { Geom::OptRect bbox; |
