mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Fix bug #8636
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:
parent
7c88c843cb
commit
85b3db19af
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user