summaryrefslogtreecommitdiffstats
path: root/src/sp-path.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-05-09 09:37:08 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-05-09 09:37:08 +0000
commite1db2612978dc4bca7d83ab3a4208c7523c67365 (patch)
treec24054baf0b7d2cb0cfe862c9bf633a04c500809 /src/sp-path.cpp
parentA little bit of refactoring of constrained object snapping (diff)
downloadinkscape-e1db2612978dc4bca7d83ab3a4208c7523c67365.tar.gz
inkscape-e1db2612978dc4bca7d83ab3a4208c7523c67365.zip
- try to use more forward declarations for less dependencies on display/curve.h
- change _bpath to private member of SPCurve, obtain and set with get_bpath and set_bpath. - added const methods, so protect changes to _bpath in SPCurve (bzr r5636)
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 b25397a31..86bc83e2b 100644
--- a/src/sp-path.cpp
+++ b/src/sp-path.cpp
@@ -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)