diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2011-09-04 18:11:51 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mail@diedenrezi.nl> | 2011-09-04 18:11:51 +0000 |
| commit | 1c0a4eca434ada5675c6edc476325b7bb64da1a6 (patch) | |
| tree | 75c5ac045388b1be8cedc8ac8f8177f10c7bea38 /src/selection.cpp | |
| parent | Allow changing dimensions of vertical/horizontal lines using the numeric inpu... (diff) | |
| download | inkscape-1c0a4eca434ada5675c6edc476325b7bb64da1a6.tar.gz inkscape-1c0a4eca434ada5675c6edc476325b7bb64da1a6.zip | |
1) Fix absolute scaling in transform dialog
2) Transform dialog now follows the user prefs for geometric vs. visual bounding box
(bzr r10615)
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; |
