diff --git a/src/sp-path.cpp b/src/sp-path.cpp
index 9fe2f54c56a216b440a98a4ab55caaa88e7a925a..ee98cc15095c146dbe6a11026ce3c18b3694312e 100644 (file)
--- a/src/sp-path.cpp
+++ b/src/sp-path.cpp
gint i = curve->length - 1;
if (i > r) i = r; // sometimes after switching from node editor length is wrong, e.g. f6 - draw - f2 - tab - f1, this fixes it
for (; i >= 0; i --)
- if ((curve->bpath + i) -> code == NR_MOVETO)
+ if (SP_CURVE_BPATH(curve)[i].code == NR_MOVETO)
r --;
return r;
}
/* Transform the path */
NRBPath dpath, spath;
- spath.path = shape->curve->bpath;
+ spath.path = SP_CURVE_BPATH(shape->curve);
nr_path_duplicate_transform(&dpath, &spath, xform);
SPCurve *curve = sp_curve_new_from_bpath(dpath.path);
if (curve) {