Code

Fixed bug where offset was not written to XML when stop was added.
authorjohanengelen <johanengelen@users.sourceforge.net>
Fri, 12 Jan 2007 20:17:54 +0000 (20:17 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Fri, 12 Jan 2007 20:17:54 +0000 (20:17 +0000)
src/widgets/gradient-vector.cpp

index 1f19db0a476a9e73f2d4bf312983a3d11ec62e6d..0bacfa01b69cb269e64b181dbf446b0e2bc3b2b6 100644 (file)
@@ -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);