diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-04-06 05:52:59 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-04-06 05:52:59 +0000 |
| commit | 8799800aa0462e28a371123d064bf5fb0cf7de5b (patch) | |
| tree | a4cfa858815439b72c9970da859c9ede8674bcbb /src/sp-gradient.cpp | |
| parent | Removed use of union in paint type/struct (diff) | |
| download | inkscape-8799800aa0462e28a371123d064bf5fb0cf7de5b.tar.gz inkscape-8799800aa0462e28a371123d064bf5fb0cf7de5b.zip | |
fix 1695287
(bzr r2822)
Diffstat (limited to 'src/sp-gradient.cpp')
| -rw-r--r-- | src/sp-gradient.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/sp-gradient.cpp b/src/sp-gradient.cpp index 4fd221225..d5a733b4f 100644 --- a/src/sp-gradient.cpp +++ b/src/sp-gradient.cpp @@ -208,6 +208,12 @@ sp_stop_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) repr = xml_doc->createElement("svg:stop"); } + if (((SPObjectClass *) stop_parent_class)->write) + (* ((SPObjectClass *) stop_parent_class)->write)(object, repr, flags); + + // Since we do a hackish style setting here (because SPStyle does not support stop-color and + // stop-opacity), we must do it AFTER calling the parent write method; otherwise + // sp_object_write would clear our style= attribute (bug 1695287) Inkscape::CSSOStringStream os; os << "stop-color:"; @@ -226,9 +232,6 @@ sp_stop_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) /* strictly speaking, offset an SVG <number> rather than a CSS one, but exponents make no sense * for offset proportions. */ - if (((SPObjectClass *) stop_parent_class)->write) - (* ((SPObjectClass *) stop_parent_class)->write)(object, repr, flags); - return repr; } |
