diff options
| author | Martin Owens <doctormo@gmail.com> | 2018-10-04 18:28:40 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2018-10-05 22:03:39 +0000 |
| commit | d3d052b3e24ef3fc5d12fb92775325691f343bd2 (patch) | |
| tree | 6e450ba3aee3ea7eff15b4e99cc72f1395853638 /src/object/sp-stop.cpp | |
| parent | Replicate some of the sp-item attribute handling for sp-stop (diff) | |
| download | inkscape-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.cpp | 10 |
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. */ |
