index 59578123e12e4d9e754c1897a9cf422d21a11634..441b64c02fa74679ba4d36523e39a13c684a9181 100644 (file)
#include "desktop.h"
#include "desktop-handles.h"
-#include "sp-namedview.h"
#include "display/sodipodi-ctrl.h"
#include "knot.h"
+#include "preferences.h"
namespace Inkscape {
namespace Display {
}
*/
- SPNamedView *nv = sp_desktop_namedview(_desktop);
-
- if (nv->snapindicator) {
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ bool value = prefs->getBool("/options/snapindicator/value", true);
+
+ if (value) {
// TODO add many different kinds of snap indicator :-)
// For this we should use p->getTarget() to find out what has snapped
// and adjust the shape of the snapindicator accordingly, e.g. a cross