src/file.cpp

changeset 510
ee90c55dfeef
parent 509
dcacfd2cd81b
child 513
29eb671b34f6
--- a/src/file.cpp	Fri Oct 18 17:47:05 2013 +0300
+++ b/src/file.cpp	Fri Oct 18 17:57:42 2013 +0300
@@ -298,7 +298,7 @@
 		// Trim the trailing newline
 		qchar c;
 
-		while (!line.isEmpty() && (c = line[line.length() - 1]) == '\n' || c == '\r')
+		while (!line.isEmpty() && ((c = line[line.length() - 1]) == '\n' || c == '\r'))
 			line.chop (1);
 
 		LDObject* obj = parseLine (line);

mercurial