]> git.lyx.org Git - lyx.git/blobdiff - src/output_latex.cpp
God damn tabular dual head :-/
[lyx.git] / src / output_latex.cpp
index 0391e6d1ee68669e27fb183e5460cca8b4ef309e..4ffcda59a8b652d4b09528672cb7a4d93efef662 100644 (file)
@@ -870,12 +870,13 @@ void latexParagraphs(Buffer const & buf,
 
 
 pair<bool, int> switchEncoding(odocstream & os, BufferParams const & bparams,
-                  OutputParams const & runparams, Encoding const & newEnc)
+                  OutputParams const & runparams, Encoding const & newEnc,
+                  bool force)
 {
        Encoding const oldEnc = *runparams.encoding;
        bool moving_arg = runparams.moving_arg;
-       if ((bparams.inputenc != "auto" && bparams.inputenc != "default")
-               || moving_arg)
+       if (!force && ((bparams.inputenc != "auto" && bparams.inputenc != "default")
+               || moving_arg))
                return make_pair(false, 0);
 
        // Do nothing if the encoding is unchanged.