src/toolsets/algorithmtoolset.cpp

changeset 1065
c8ecddbd99e9
parent 1064
4c7a353cf583
child 1070
292c64cb2a75
--- a/src/toolsets/algorithmtoolset.cpp	Sat Jan 28 14:13:01 2017 +0200
+++ b/src/toolsets/algorithmtoolset.cpp	Sat Jan 28 14:14:28 2017 +0200
@@ -74,7 +74,7 @@
 
 void AlgorithmToolset::editRaw()
 {
-	if (length(selectedObjects()) != 1)
+	if (countof(selectedObjects()) != 1)
 		return;
 
 	LDObject* obj = selectedObjects()[0];
@@ -131,7 +131,7 @@
 			lines[3] = nullptr;
 		}
 
-		for (int i = 0; i < length (lines); ++i)
+		for (int i = 0; i < countof (lines); ++i)
 		{
 			if (lines[i] == nullptr)
 				continue;
@@ -513,7 +513,7 @@
 			digits.setNum (subidx++);
 
 			// pad it with a zero
-			if (length(digits) == 1)
+			if (countof(digits) == 1)
 				digits.prepend ("0");
 
 			fullsubname = subdirname + "/" + Basename (parentpath) + "s" + digits + ".dat";

mercurial