summaryrefslogtreecommitdiffstats
path: root/src/object/sp-stop.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2018-10-04 18:28:40 +0000
committerMartin Owens <doctormo@gmail.com>2018-10-05 22:03:39 +0000
commitd3d052b3e24ef3fc5d12fb92775325691f343bd2 (patch)
tree6e450ba3aee3ea7eff15b4e99cc72f1395853638 /src/object/sp-stop.cpp
parentReplicate some of the sp-item attribute handling for sp-stop (diff)
downloadinkscape-d3d052b3e24ef3fc5d12fb92775325691f343bd2.tar.gz
inkscape-d3d052b3e24ef3fc5d12fb92775325691f343bd2.zip
Fix signaling issue with gradient stops not updating their parent
Diffstat (limited to 'src/object/sp-stop.cpp')
-rw-r--r--src/object/sp-stop.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/object/sp-stop.cpp b/src/object/sp-stop.cpp
index 7386599ff..41daeb4d4 100644
--- a/src/object/sp-stop.cpp
+++ b/src/object/sp-stop.cpp
@@ -69,11 +69,21 @@ void SPStop::set(unsigned int key, const gchar* value) {
} else {
SPObject::set(key, value);
}
+ // This makes sure that the parent sp-gradient is updated.
+ this->requestModified(SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG);
break;
}
}
}
+void SPStop::modified(guint flags)
+{
+ if (parent && !(flags & SP_OBJECT_PARENT_MODIFIED_FLAG)) {
+ parent->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG);
+ }
+}
+
+
/**
* Virtual set: set attribute to value.
*/