summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a281921)
raw | patch | inline | side by side (parent: a281921)
author | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Wed, 25 Jul 2007 12:01:37 +0000 (12:01 +0000) | ||
committer | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Wed, 25 Jul 2007 12:01:37 +0000 (12:01 +0000) |
src/selcue.cpp | patch | blob | history |
diff --git a/src/selcue.cpp b/src/selcue.cpp
index 5a831d831ce173e9e32fade63c1df0be1a06d1d8..1564ae1f173301d9a73df634135baf9066e665f4 100644 (file)
--- a/src/selcue.cpp
+++ b/src/selcue.cpp
g_return_if_fail(_selection != NULL);
+ 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;
+
for (GSList const *l = _selection->itemList(); l != NULL; l = l->next) {
SPItem *item = (SPItem *) l->data;
- 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;