summaryrefslogtreecommitdiffstats
path: root/src/sp-path.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-05-09 03:52:58 +0000
committermental <mental@users.sourceforge.net>2006-05-09 03:52:58 +0000
commit48e6b0819d64e02bd43c199c9afa12f26a485323 (patch)
tree9e7ef9cdd55a75cf222d513f91317d87e02d090f /src/sp-path.cpp
parentpartial GTKmmfication and HIGification by Jonathon Jongsma (diff)
downloadinkscape-48e6b0819d64e02bd43c199c9afa12f26a485323.tar.gz
inkscape-48e6b0819d64e02bd43c199c9afa12f26a485323.zip
eliminate direct accesses to SPCurve::bpath
(bzr r787)
Diffstat (limited to 'src/sp-path.cpp')
-rw-r--r--src/sp-path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-path.cpp b/src/sp-path.cpp
index 9fe2f54c5..ee98cc150 100644
--- a/src/sp-path.cpp
+++ b/src/sp-path.cpp
@@ -111,7 +111,7 @@ sp_nodes_in_path(SPPath *path)
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;
}
@@ -289,7 +289,7 @@ sp_path_set_transform(SPItem *item, NR::Matrix const &xform)
/* 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) {