summaryrefslogtreecommitdiffstats
path: root/src/gradient-chemistry.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-10-11 16:40:24 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-10-11 16:40:24 +0000
commit33644fe39db29168cf573c7665d3285ebc86fccb (patch)
treee1a7612874e17446ce373dacd126fa13f0b14dc8 /src/gradient-chemistry.cpp
parenttrivial: dom/odf/: svn propset svn:eol-style native *.h *.cpp. (diff)
downloadinkscape-33644fe39db29168cf573c7665d3285ebc86fccb.tar.gz
inkscape-33644fe39db29168cf573c7665d3285ebc86fccb.zip
implement no-forking option
(bzr r3886)
Diffstat (limited to 'src/gradient-chemistry.cpp')
-rw-r--r--src/gradient-chemistry.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp
index 486d38167..37b50eca0 100644
--- a/src/gradient-chemistry.cpp
+++ b/src/gradient-chemistry.cpp
@@ -34,6 +34,7 @@
#include "svg/svg.h"
#include "svg/svg-color.h"
#include "svg/css-ostringstream.h"
+#include "prefs-utils.h"
// Terminology:
@@ -234,6 +235,10 @@ sp_gradient_fork_private_if_necessary(SPGradient *gr, SPGradient *vector,
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)
+ return gr;
+
if (SP_OBJECT_HREFCOUNT(gr) > 1) {
SPDocument *doc = SP_OBJECT_DOCUMENT(gr);
Inkscape::XML::Document *xml_doc = sp_document_repr_doc(doc);