This was a simple logic error that crept in during refactoring:
If the format does not match, and the converted file has been read,
the string must not be read.
This commit is contained in:
Georg Baum 2013-04-21 21:32:53 +02:00
parent 7c88c843cb
commit 85b3db19af

View File

@ -1043,8 +1043,7 @@ bool Buffer::readString(string const & s)
if (readFile(fn) != ReadSuccess)
success = false;
}
if (success)
else if (success)
if (readDocument(lex))
success = false;
if (fn.exists())