summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ed2c439)
raw | patch | inline | side by side (parent: ed2c439)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 13 Apr 2007 23:33:48 +0000 (23:33 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 13 Apr 2007 23:33:48 +0000 (23:33 +0000) |
src/selcue.cpp | patch | blob | history |
diff --git a/src/selcue.cpp b/src/selcue.cpp
index a073f349327aa85b0e6f7a8ed42ce18b453abc0b..1831e8b54a24b869c047b029ffcc2f6ade5344ca 100644 (file)
--- a/src/selcue.cpp
+++ b/src/selcue.cpp
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;