]> git.lyx.org Git - features.git/commitdiff
fix inclusion of literate child documents after r38118
authorJulien Rioux <jrioux@lyx.org>
Wed, 30 Mar 2011 00:23:32 +0000 (00:23 +0000)
committerJulien Rioux <jrioux@lyx.org>
Wed, 30 Mar 2011 00:23:32 +0000 (00:23 +0000)
(isLatex is unreliable)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38140 a592a061-630c-0410-9148-cb99ea01b6c8

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,