diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index e81abdacbd4e73bff87c71e7f28834df7880d282..18da75111528243c781163382aa9bcdc0a31bcdd 100644 (file)
--- a/src/nodepath.cpp
+++ b/src/nodepath.cpp
SPCurve *curve = create_curve(np);
gchar *typestr = create_typestr(np);
- gchar *svgpath = sp_svg_write_path(curve->bpath);
+ gchar *svgpath = sp_svg_write_path(SP_CURVE_BPATH(curve));
if (repr->attribute("d") == NULL || strcmp(svgpath, repr->attribute("d"))) { // d changed
np->local_change++;
SPCurve *curve = create_curve(np);
gchar *typestr = create_typestr(np);
- gchar *svgpath = sp_svg_write_path(curve->bpath);
+ gchar *svgpath = sp_svg_write_path(SP_CURVE_BPATH(curve));
new_repr->setAttribute("d", svgpath);
new_repr->setAttribute("sodipodi:nodetypes", typestr);