summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2011-09-04 18:11:51 +0000
committerDiederik van Lierop <mail@diedenrezi.nl>2011-09-04 18:11:51 +0000
commit1c0a4eca434ada5675c6edc476325b7bb64da1a6 (patch)
tree75c5ac045388b1be8cedc8ac8f8177f10c7bea38 /src/sp-item.cpp
parentAllow changing dimensions of vertical/horizontal lines using the numeric inpu... (diff)
downloadinkscape-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/sp-item.cpp')
-rw-r--r--src/sp-item.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index c0c23ba8b..3069dcf73 100644
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
@@ -791,6 +791,16 @@ Geom::OptRect SPItem::desktopVisualBounds() const
{
return visualBounds(i2dt_affine());
}
+
+Geom::OptRect SPItem::desktopPreferredBounds() const
+{
+ if (Inkscape::Preferences::get()->getInt("/tools/bounding_box") == 0) {
+ return desktopBounds(SPItem::VISUAL_BBOX);
+ } else {
+ return desktopBounds(SPItem::GEOMETRIC_BBOX);
+ }
+}
+
Geom::OptRect SPItem::desktopBounds(BBoxType type) const
{
if (type == GEOMETRIC_BBOX) {