mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +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)
|
if (readFile(fn) != ReadSuccess)
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
|
else if (success)
|
||||||
if (success)
|
|
||||||
if (readDocument(lex))
|
if (readDocument(lex))
|
||||||
success = false;
|
success = false;
|
||||||
if (fn.exists())
|
if (fn.exists())
|
||||||
|
Loading…
Reference in New Issue
Block a user