diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-07-25 12:01:37 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-07-25 12:01:37 +0000 |
| commit | 75856b6d7a3e617369f5af8ce2634ce9d02394cc (patch) | |
| tree | c430012617997af95af7fc4f40a6ce4eb840dd4c /src/selcue.cpp | |
| parent | Added example of lighting effects (diff) | |
| download | inkscape-75856b6d7a3e617369f5af8ce2634ce9d02394cc.tar.gz inkscape-75856b6d7a3e617369f5af8ce2634ce9d02394cc.zip | |
Retrieve preferences outside the for-loop, not inside.
(bzr r3295)
Diffstat (limited to '')
| -rw-r--r-- | src/selcue.cpp | 6 |
1 files 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<NR::Rect> const b = sp_item_bbox_desktop(item, bbox_type); SPCanvasItem* box = NULL; |
