From 85b3db19af47d9696952647f1a98aaae0729efd5 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 21 Apr 2013 21:32:53 +0200 Subject: [PATCH] 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. --- src/Buffer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 1d9061ce77..01a72f2879 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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()) -- 2.39.2