summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f462bc9)
raw | patch | inline | side by side (parent: f462bc9)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 8 Jan 2007 20:12:43 +0000 (20:12 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 8 Jan 2007 20:12:43 +0000 (20:12 +0000) |
Now changing colors is interactive.
src/sp-gradient.cpp | patch | blob | history |
diff --git a/src/sp-gradient.cpp b/src/sp-gradient.cpp
index 2e6d2a37c303b746b860850942b82ad726f15aec..d28f631ded7aab5513232452c8e0259811236d9a 100644 (file)
--- a/src/sp-gradient.cpp
+++ b/src/sp-gradient.cpp
}
case SP_ATTR_OFFSET: {
stop->offset = sp_svg_read_percentage(value, 0.0);
- object->requestModified(SP_OBJECT_MODIFIED_FLAG);
+ object->requestModified(SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG);
break;
}
default: {
sp_gradient_invalidate_vector(gr);
}
+ if (flags & SP_OBJECT_STYLE_MODIFIED_FLAG) {
+ sp_gradient_ensure_colors(gr);
+ }
+
if (flags & SP_OBJECT_MODIFIED_FLAG) flags |= SP_OBJECT_PARENT_MODIFIED_FLAG;
flags &= SP_OBJECT_MODIFIED_CASCADE;