]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.C
minimal effort implementation of:
[lyx.git] / src / buffer.C
index a2dfa7c020c476339314db654f57a04a7f9f687e..466da5bc83be1b51b9604aa3db2215b72c2e2a15 100644 (file)
@@ -566,14 +566,15 @@ bool Buffer::readFile(string const & filename)
        paragraphs().clear();
        LyXLex lex(0, 0);
        lex.setFile(filename);
-       bool ret = readFile(lex, filename);
+       if (!readFile(lex, filename))
+               return false;
 
        // After we have read a file, we must ensure that the buffer
        // language is set and used in the gui.
        // If you know of a better place to put this, please tell me. (Lgb)
        updateDocLang(params().language);
 
-       return ret;
+       return true;
 }
 
 
@@ -968,14 +969,6 @@ bool Buffer::isDocBook() const
 }
 
 
-bool Buffer::isSGML() const
-{
-       LyXTextClass const & tclass = params().getLyXTextClass();
-
-       return tclass.outputType() == DOCBOOK;
-}
-
-
 void Buffer::makeDocBookFile(string const & fname,
                              OutputParams const & runparams,
                              bool const body_only)