index dbfb5267646bc6938556ad31a2f5c34232f0b4c3..6dd62206c20402ce101af71d7315ff91637ced89 100644 (file)
SPShape *shape = SP_SHAPE(reprobj);
SPCurve *curve = shape->curve;
SPShape *shape = SP_SHAPE(reprobj);
SPCurve *curve = shape->curve;
- if (sp_curve_empty(curve))
+ if (curve->is_empty())
continue;
nrShapes++;
continue;
nrShapes++;
//Count the NR_CURVETOs/LINETOs
int segmentCount=0;
//Count the NR_CURVETOs/LINETOs
int segmentCount=0;
- NArtBpath *bp = SP_CURVE_BPATH(curve);
+ NArtBpath const *bp = SP_CURVE_BPATH(curve);
for (int curveNr=0 ; curveNr<curveLength ; curveNr++, bp++)
if (bp->code == NR_CURVETO || bp->code == NR_LINETO)
segmentCount++;
for (int curveNr=0 ; curveNr<curveLength ; curveNr++, bp++)
if (bp->code == NR_CURVETO || bp->code == NR_LINETO)
segmentCount++;