Code

- try to use more forward declarations for less dependencies on display/curve.h
[inkscape.git] / src / sp-path.cpp
index b25397a31b99b1fbc2685292ab3f432e9d97c261..86bc83e2b504efb50f2c391efbaaad18da134e06 100644 (file)
@@ -123,8 +123,8 @@ sp_nodes_in_path(SPPath *path)
 {
     SPCurve *curve = SP_SHAPE(path)->curve;
     if (!curve) return 0;
-    gint r = curve->end;
-    gint i = curve->length - 1;
+    gint r = curve->_end;
+    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 (SP_CURVE_BPATH(curve)[i].code == NR_MOVETO)