diff options
| author | MenTaLguY <mental@rydia.net> | 2006-05-09 03:52:58 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-05-09 03:52:58 +0000 |
| commit | 48e6b0819d64e02bd43c199c9afa12f26a485323 (patch) | |
| tree | 9e7ef9cdd55a75cf222d513f91317d87e02d090f /src/extension | |
| parent | partial GTKmmfication and HIGification by Jonathon Jongsma (diff) | |
| download | inkscape-48e6b0819d64e02bd43c199c9afa12f26a485323.tar.gz inkscape-48e6b0819d64e02bd43c199c9afa12f26a485323.zip | |
eliminate direct accesses to SPCurve::bpath
(bzr r787)
Diffstat (limited to 'src/extension')
| -rw-r--r-- | src/extension/internal/odf.cpp | 2 | ||||
| -rw-r--r-- | src/extension/internal/pov-out.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/extension/internal/odf.cpp b/src/extension/internal/odf.cpp index 11cf842d3..16ff0f18f 100644 --- a/src/extension/internal/odf.cpp +++ b/src/extension/internal/odf.cpp @@ -1674,7 +1674,7 @@ bool OdfOutput::writeTree(Writer &outs, Inkscape::XML::Node *node) bbox_width * 1000.0, bbox_height * 1000.0); outs.printf(" svg:d=\""); - writePath(outs, curve->bpath, tf, bbox_x, bbox_y); + writePath(outs, SP_CURVE_BPATH(curve), tf, bbox_x, bbox_y); outs.printf("\""); outs.printf(">\n"); diff --git a/src/extension/internal/pov-out.cpp b/src/extension/internal/pov-out.cpp index fbe64bd81..8450b1040 100644 --- a/src/extension/internal/pov-out.cpp +++ b/src/extension/internal/pov-out.cpp @@ -217,12 +217,12 @@ PovOutput::save(Inkscape::Extension::Output *mod, SPDocument *doc, gchar const * //Count the NR_CURVETOs/LINETOs int segmentCount=0; - NArtBpath *bp = curve->bpath; + NArtBpath *bp = SP_CURVE_BPATH(curve); for (curveNr=0 ; curveNr<curve->length ; curveNr++, bp++) if (bp->code == NR_CURVETO || bp->code == NR_LINETO) segmentCount++; - bp = curve->bpath; + bp = SP_CURVE_BPATH(curve); double cminx = bignum; double cmaxx = -bignum; double cminy = bignum; @@ -240,7 +240,7 @@ PovOutput::save(Inkscape::Extension::Output *mod, SPDocument *doc, gchar const * fprintf(f, " 0.0, //bottom\n"); fprintf(f, " %d, //nr points\n", segmentCount * 4); int segmentNr = 0; - for (bp = curve->bpath, curveNr=0 ; curveNr<curve->length ; curveNr++, bp++) { + for (bp = SP_CURVE_BPATH(curve), curveNr=0 ; curveNr<curve->length ; curveNr++, bp++) { using NR::X; using NR::Y; NR::Point const p1(bp->c(1) * tf); |
