diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-04-17 02:40:23 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-04-17 02:40:23 +0000 |
| commit | 59db065f39b26434907a247e3249058176f6034a (patch) | |
| tree | 0d968ff42d814b25b813bdf2b49f76acfa939022 /src/selcue.cpp | |
| parent | fix by kur9kin for endless loop from bug 212332 (diff) | |
| download | inkscape-59db065f39b26434907a247e3249058176f6034a.tar.gz inkscape-59db065f39b26434907a247e3249058176f6034a.zip | |
replace text strings by ints for tools/bounding_box
(bzr r5459)
Diffstat (limited to 'src/selcue.cpp')
| -rw-r--r-- | src/selcue.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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; |
