From 530dbe4e20d1ce4aaee39c874e4282301e90a17e Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sun, 26 Aug 2007 22:33:42 +0000 Subject: [PATCH] do the same remembering for stop opacity --- src/sp-gradient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sp-gradient.cpp b/src/sp-gradient.cpp index 8fad6074a..8a3eded40 100644 --- a/src/sp-gradient.cpp +++ b/src/sp-gradient.cpp @@ -209,6 +209,7 @@ sp_stop_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) } guint32 specifiedcolor = sp_color_get_rgba32_ualpha(&stop->specified_color, 255); + gfloat opacity = stop->opacity; if (((SPObjectClass *) stop_parent_class)->write) (* ((SPObjectClass *) stop_parent_class)->write)(object, repr, flags); @@ -226,7 +227,7 @@ sp_stop_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) sp_svg_write_color(c, 64, specifiedcolor); os << c; } - os << ";stop-opacity:" << stop->opacity; + os << ";stop-opacity:" << opacity; repr->setAttribute("style", os.str().c_str()); repr->setAttribute("stop-color", NULL); repr->setAttribute("stop-opacity", NULL); -- 2.30.2