src/editmodes/linePathMode.cpp

changeset 1065
c8ecddbd99e9
parent 1063
1f15c52c11f6
child 1072
9ce9496427f2
--- a/src/editmodes/linePathMode.cpp	Sat Jan 28 14:13:01 2017 +0200
+++ b/src/editmodes/linePathMode.cpp	Sat Jan 28 14:14:28 2017 +0200
@@ -35,15 +35,15 @@
 
 	painter.setPen (renderer()->textPen());
 
-	if (length(points) == length(points3d))
+	if (countof(points) == countof(points3d))
 	{
-		for (int i = 0; i < length(points) - 1; ++i)
+		for (int i = 0; i < countof(points) - 1; ++i)
 		{
 			painter.drawLine (QLineF (points[i], points[i + 1]));
 			drawLineLength (painter, points3d[i], points3d[i + 1], points[i], points[i + 1]);
 		}
 	
-		for (int i = 0; i < length(points); ++i)
+		for (int i = 0; i < countof(points); ++i)
 		{
 			const QPointF& point = points[i];
 			renderer()->drawPoint (painter, point);
@@ -82,7 +82,7 @@
 {
 	LDObjectList objs;
 
-	for (int i = 0; i < length(m_drawedVerts) - 1; ++i)
+	for (int i = 0; i < countof(m_drawedVerts) - 1; ++i)
 	{
 		LDLine* line = LDSpawn<LDLine>();
 		line->setVertex (0, m_drawedVerts[i]);

mercurial