--- 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);