summaryrefslogtreecommitdiffstats
path: root/src/gradient-chemistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gradient-chemistry.cpp')
-rw-r--r--src/gradient-chemistry.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp
index 7b32b37d7..ce26d2c5f 100644
--- a/src/gradient-chemistry.cpp
+++ b/src/gradient-chemistry.cpp
@@ -38,7 +38,7 @@
#include "svg/svg.h"
#include "svg/svg-color.h"
#include "svg/css-ostringstream.h"
-#include "prefs-utils.h"
+#include "preferences.h"
// Terminology:
@@ -240,7 +240,8 @@ SPGradient *
sp_gradient_fork_vector_if_necessary (SPGradient *gr)
{
// Some people actually prefer their gradient vectors to be shared...
- if (prefs_get_int_attribute("options.forkgradientvectors", "value", 1) == 0)
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ if (!prefs->getBool("/options/forkgradientvectors/value", true))
return gr;
if (SP_OBJECT_HREFCOUNT(gr) > 1) {