diff --git a/src/box3d.cpp b/src/box3d.cpp
index 548132bdc5b0f626e6efb29230b9ffa20c74dad7..34ce7a27fa0e824ea8bf8afc7e053a1d42fba2aa 100644 (file)
--- a/src/box3d.cpp
+++ b/src/box3d.cpp
#include "attributes.h"
#include "xml/document.h"
#include "xml/repr.h"
-#include "libnr/nr-matrix-fns.h"
#include "box3d.h"
#include "box3d-side.h"
#include "line-geometry.h"
#include "persp3d-reference.h"
#include "uri.h"
-#include "2geom/geom.h"
+#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 +1415,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;
}