--- a/src/file.cpp Wed Jul 10 01:53:33 2013 +0300 +++ b/src/file.cpp Wed Jul 10 02:17:23 2013 +0300 @@ -626,10 +626,10 @@ return new LDEmpty; } - if( tokens[0].length() != 1 ) - return new LDGibberish (line, "Illogical line code"); + if( tokens[0].length() != 1 || tokens[0][0].isDigit() == false ) + return new LDGibberish( line, "Illogical line code" ); - int num = tokens[0][0].toAscii() - '0'; + int num = tokens[0][0].digitValue(); switch( num ) { case 0: