]> git.lyx.org Git - features.git/commitdiff
fix inputenc handling bug introduced with r18198
authorUwe Stöhr <uwestoehr@web.de>
Sun, 6 May 2007 14:18:40 +0000 (14:18 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sun, 6 May 2007 14:18:40 +0000 (14:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18210 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferParams.cpp

index fc1b3ad9cfb6d69843c41e9a3551a0bb75a39f92..92fabd06c970f1203e9fd142ef3bb9d2e3b42b3d 100644 (file)
@@ -902,7 +902,7 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
                // thailatex does not use the inputenc package, but sets up
                // babel directly for tis620-0 encoding, therefore we must
                // not request inputenc for tis620-0 encoding
-               if (!encodings.empty() && doc_encoding != "tis620-0") {
+               if (!encodings.empty() || doc_encoding != "tis620-0") {
                        os << "\\usepackage[";
                        std::set<string>::const_iterator it = encodings.begin();
                        std::set<string>::const_iterator const end = encodings.end();