From: Bo Peng Date: Wed, 23 May 2007 19:24:06 +0000 (+0000) Subject: Allow listing the lyx file itself, fix bug 3707 X-Git-Tag: 1.6.10~9655 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f8b1ce4ada8adb67b5749583bf482ebf8906d79c;hp=4ef33baee95accfcfe3c590db80593806d2c9612;p=lyx.git 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 --- 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)));