From f8b1ce4ada8adb67b5749583bf482ebf8906d79c Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Wed, 23 May 2007 19:24:06 +0000 Subject: [PATCH] Allow listing the lyx file itself, fix bug 3707 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18477 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetInclude.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp index 1b7ddf81a3..eca2ff60cd 100644 --- a/src/insets/InsetInclude.cpp +++ b/src/insets/InsetInclude.cpp @@ -416,7 +416,7 @@ int InsetInclude::latex(Buffer const & buffer, odocstream & os, //FIXME RECURSIVE INCLUDE //This isn't sufficient, as the inclusion could be downstream. //But it'll have to do for now. - if (buffer.fileName() == included_file.toFilesystemEncoding()) { + if (!isListings(params_) && buffer.fileName() == included_file.toFilesystemEncoding()) { Alert::error(_("Recursive input"), bformat(_("Attempted to include file %1$s in itself! " "Ignoring inclusion."), from_utf8(incfile))); -- 2.39.2