X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsp-spiral.cpp;h=ab65ba4ddd65484920199888d7480031784bcf86;hb=596bccd8892219903e0eb4fb1389b4942e3cca1e;hp=d7b703d1adbc70269657cf795f5a61ba6ce7a5fc;hpb=f951374eef04129c6a0d213e7ab4d9ed2095ca69;p=inkscape.git diff --git a/src/sp-spiral.cpp b/src/sp-spiral.cpp index d7b703d1a..ab65ba4dd 100644 --- a/src/sp-spiral.cpp +++ b/src/sp-spiral.cpp @@ -156,6 +156,9 @@ sp_spiral_write (SPObject *object, Inkscape::XML::Node *repr, guint flags) sp_repr_set_svg_double(repr, "sodipodi:t0", spiral->t0); } + // make sure the curve is rebuilt with all up-to-date parameters + sp_spiral_set_shape ((SPShape *) spiral); + //Duplicate the path SPCurve *curve = ((SPShape *) spiral)->curve; //Nulls might be possible if this called iteratively @@ -163,7 +166,7 @@ sp_spiral_write (SPObject *object, Inkscape::XML::Node *repr, guint flags) //g_warning("sp_spiral_write(): No path to copy\n"); return NULL; } - NArtBpath *bpath = curve->bpath; + NArtBpath *bpath = SP_CURVE_BPATH(curve); if ( !bpath ) { //g_warning("sp_spiral_write(): No path to copy\n"); return NULL;