From 59db065f39b26434907a247e3249058176f6034a Mon Sep 17 00:00:00 2001 From: bulia byak Date: Thu, 17 Apr 2008 02:40:23 +0000 Subject: replace text strings by ints for tools/bounding_box (bzr r5459) --- src/selcue.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/selcue.cpp') diff --git a/src/selcue.cpp b/src/selcue.cpp index 4eba1f756..48df1cf8a 100644 --- a/src/selcue.cpp +++ b/src/selcue.cpp @@ -77,8 +77,9 @@ void Inkscape::SelCue::_updateItemBboxes() g_return_if_fail(_selection != NULL); - gchar const *prefs_bbox = prefs_get_string_attribute("tools", "bounding_box"); - SPItem::BBoxType bbox_type = (prefs_bbox != NULL && strcmp(prefs_bbox, "geometric")==0)? SPItem::GEOMETRIC_BBOX : SPItem::APPROXIMATE_BBOX; + int prefs_bbox = prefs_get_int_attribute("tools", "bounding_box", 0); + SPItem::BBoxType bbox_type = (prefs_bbox ==0)? + SPItem::APPROXIMATE_BBOX : SPItem::GEOMETRIC_BBOX; for (GSList const *l = _selection->itemList(); l != NULL; l = l->next) { SPItem *item = (SPItem *) l->data; -- cgit v1.2.3