summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a69102)
raw | patch | inline | side by side (parent: 6a69102)
author | joncruz <joncruz@users.sourceforge.net> | |
Sat, 17 May 2008 04:10:19 +0000 (04:10 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sat, 17 May 2008 04:10:19 +0000 (04:10 +0000) |
src/display/curve.cpp | patch | blob | history |
diff --git a/src/display/curve.cpp b/src/display/curve.cpp
index 489553dacf7f40205dcb621d0a900cdd9d28afe6..966a35f5bd01ddf01f0e08c4b01c6773adda09f8 100644 (file)
--- a/src/display/curve.cpp
+++ b/src/display/curve.cpp
* 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) {