From cd321ee8090f371d485671e422c9012b402e76b4 Mon Sep 17 00:00:00 2001 From: dvlierop2 Date: Wed, 25 Jul 2007 12:01:37 +0000 Subject: [PATCH] Retrieve preferences outside the for-loop, not inside. --- src/selcue.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/selcue.cpp b/src/selcue.cpp index 5a831d831..1564ae1f1 100644 --- a/src/selcue.cpp +++ b/src/selcue.cpp @@ -75,12 +75,12 @@ void Inkscape::SelCue::_updateItemBboxes() 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 const b = sp_item_bbox_desktop(item, bbox_type); SPCanvasItem* box = NULL; -- 2.30.2