summaryrefslogtreecommitdiffstats
path: root/src/selcue.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-04-13 23:33:48 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-04-13 23:33:48 +0000
commitd1fc01a090203b8134ed0d367bbed4ae2e6ba2d8 (patch)
tree26b4d28d589ef30fb3adfb3bf3254b1eb45cd756 /src/selcue.cpp
parentfix select under by alt+click; prevent potential refcount leak (diff)
downloadinkscape-d1fc01a090203b8134ed0d367bbed4ae2e6ba2d8.tar.gz
inkscape-d1fc01a090203b8134ed0d367bbed4ae2e6ba2d8.zip
make selcue sensitive to bbox type
(bzr r2881)
Diffstat (limited to 'src/selcue.cpp')
-rw-r--r--src/selcue.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/selcue.cpp b/src/selcue.cpp
index a073f3493..1831e8b54 100644
--- a/src/selcue.cpp
+++ b/src/selcue.cpp
@@ -78,7 +78,10 @@ void Inkscape::SelCue::_updateItemBboxes()
for (GSList const *l = _selection->itemList(); l != NULL; l = l->next) {
SPItem *item = (SPItem *) l->data;
- NR::Maybe<NR::Rect> const b = sp_item_bbox_desktop(item);
+ gchar const *prefs_bbox = prefs_get_string_attribute("tools.select", "bounding_box");
+ SPItem::BBoxType bbox_type = (prefs_bbox == NULL || strcmp(prefs_bbox, "geometric")==0)? SPItem::GEOMETRIC_BBOX : SPItem::APPROXIMATE_BBOX;
+
+ NR::Maybe<NR::Rect> const b = sp_item_bbox_desktop(item, bbox_type);
SPCanvasItem* box = NULL;