From: johanengelen Date: Fri, 12 Jan 2007 20:17:54 +0000 (+0000) Subject: Fixed bug where offset was not written to XML when stop was added. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=11a230ffac34619812dee77feb481ff503678676;p=inkscape.git Fixed bug where offset was not written to XML when stop was added. --- diff --git a/src/widgets/gradient-vector.cpp b/src/widgets/gradient-vector.cpp index 1f19db0a4..0bacfa01b 100644 --- a/src/widgets/gradient-vector.cpp +++ b/src/widgets/gradient-vector.cpp @@ -720,6 +720,7 @@ sp_grd_ed_add_stop (GtkWidget *widget, GtkWidget *vb) gdouble opacity = (gdouble) SP_RGBA32_A_F (cnew); os << "stop-color:" << c << ";stop-opacity:" << opacity <<";"; SP_OBJECT_REPR (newstop)->setAttribute("style", os.str().c_str()); + sp_repr_set_css_double( SP_OBJECT_REPR(newstop), "offset", (double)newstop->offset); sp_gradient_vector_widget_load_gradient (vb, gradient); Inkscape::GC::release(new_stop_repr);