summaryrefslogtreecommitdiffstats
path: root/src/display/curve.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2008-05-17 04:10:19 +0000
committerjoncruz <joncruz@users.sourceforge.net>2008-05-17 04:10:19 +0000
commit31e60a8f346a863192818634809c4d49a5a0d31c (patch)
treef8508dad174e52aedd38bd1191d91599152aa791 /src/display/curve.cpp
parentFix a regression in the snapper, caused by me. Sorry! (diff)
downloadinkscape-31e60a8f346a863192818634809c4d49a5a0d31c.tar.gz
inkscape-31e60a8f346a863192818634809c4d49a5a0d31c.zip
Fixed initialization order
(bzr r5681)
Diffstat (limited to 'src/display/curve.cpp')
-rw-r--r--src/display/curve.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/display/curve.cpp b/src/display/curve.cpp
index 489553dac..966a35f5b 100644
--- a/src/display/curve.cpp
+++ b/src/display/curve.cpp
@@ -39,15 +39,15 @@ static bool sp_bpath_closed(NArtBpath const bpath[]);
* element).
*/
SPCurve::SPCurve(guint length)
- : _refcount(1),
- _bpath(NULL),
- _end(0),
+ : _end(0),
_length(length),
_substart(0),
_hascpt(false),
_posSet(false),
_moving(false),
- _closed(false)
+ _closed(false),
+ _refcount(1),
+ _bpath(NULL)
{
if (length <= 0) {
g_error("SPCurve::SPCurve called with invalid length parameter");
@@ -1045,7 +1045,7 @@ sp_curve_distance_including_space(SPCurve const *const curve, double seg2len[])
}
NR::Point prev(curve->_bpath->c(3));
- for (gint i = 1; i < curve->_end; ++i) {
+ for (guint i = 1; i < curve->_end; ++i) {
NArtBpath &p = curve->_bpath[i];
double seg_len = 0;
switch (p.code) {