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/sp-item.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/sp-item.cpp')
| -rw-r--r-- | src/sp-item.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 263671d47..0ab8566eb 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -1663,8 +1663,9 @@ sp_item_convert_to_guides(SPItem *item) { SPNamedView *nv = sp_desktop_namedview(dt); (void)nv; - 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::RENDERING_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; NR::Maybe<NR::Rect> bbox = sp_item_bbox_desktop(item, bbox_type); if (!bbox) { |
