summaryrefslogtreecommitdiffstats
path: root/src/box3d.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2008-10-27 18:03:09 +0000
committerTed Gould <ted@canonical.com>2008-10-27 18:03:09 +0000
commit7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902 (patch)
tree7d3a2b95b84a03a19cb132cdf88bea0ab6dc4773 /src/box3d.cpp
parentMerging from trunk (diff)
downloadinkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.tar.gz
inkscape-7dbe11bc23efa5f51a9b84e7d0f6dd16e63e0902.zip
From trunk
(bzr r6885)
Diffstat (limited to 'src/box3d.cpp')
-rw-r--r--src/box3d.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/box3d.cpp b/src/box3d.cpp
index 548132bdc..057329a28 100644
--- a/src/box3d.cpp
+++ b/src/box3d.cpp
@@ -35,7 +35,7 @@
#include "2geom/geom.h"
#include "sp-guide.h"
#include "sp-namedview.h"
-#include "prefs-utils.h"
+#include "preferences.h"
#include "desktop.h"
#include "desktop-handles.h"
@@ -1416,8 +1416,9 @@ box3d_push_back_corner_pair(SPBox3D *box, std::list<std::pair<Geom::Point, Geom:
void
box3d_convert_to_guides(SPItem *item) {
SPBox3D *box = SP_BOX3D(item);
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- if (prefs_get_int_attribute("tools.shapes.3dbox", "convertguides", 1) == 0) {
+ if (!prefs->getBool("/tools/shapes/3dbox/convertguides", true)) {
sp_item_convert_to_guides(SP_ITEM(box));
return;
}