From d1fc01a090203b8134ed0d367bbed4ae2e6ba2d8 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Fri, 13 Apr 2007 23:33:48 +0000 Subject: make selcue sensitive to bbox type (bzr r2881) --- src/selcue.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 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 const b = sp_item_bbox_desktop(item, bbox_type); SPCanvasItem* box = NULL; -- cgit v1.2.3