]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInclude.cpp
Fix wrongly copy-pasted entries in SpellcheckerUi.ui
[lyx.git] / src / insets / InsetInclude.cpp
index 35f2d258304da76f74c559c5a44ab17795b1113c..3029349d94263cb93bee606eddf7c6888a189383 100644 (file)
@@ -638,8 +638,8 @@ void InsetInclude::latex(otexstream & os, OutputParams const & runparams) const
                runparams.encoding = oldEnc;
                runparams.master_language = oldLang;
 
-               // I needed, use converters to produce a latex file from the child
-               if (!tmp->isLatex()) {
+               // If needed, use converters to produce a latex file from the child
+               if (tmpwritefile != writefile) {
                        ErrorList el;
                        bool const success =
                                theConverters().convert(tmp, tmpwritefile, writefile,