From d3d052b3e24ef3fc5d12fb92775325691f343bd2 Mon Sep 17 00:00:00 2001 From: Martin Owens Date: Thu, 4 Oct 2018 14:28:40 -0400 Subject: Fix signaling issue with gradient stops not updating their parent --- src/object/sp-stop.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/object/sp-stop.cpp') 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. */ -- cgit v1.2.3