Change related to 18445: buffer.fileName() uses .absFilename().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18524 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2007-05-26 17:33:52 +00:00
parent c0b5fb6a80
commit df99a5c933

View File

@ -431,7 +431,7 @@ int InsetInclude::latex(Buffer const & buffer, odocstream & os,
//This isn't sufficient, as the inclusion could be downstream. //This isn't sufficient, as the inclusion could be downstream.
//But it'll have to do for now. //But it'll have to do for now.
if (isInputOrInclude(params_) && if (isInputOrInclude(params_) &&
buffer.fileName() == included_file.toFilesystemEncoding()) buffer.fileName() == included_file.absFilename())
{ {
Alert::error(_("Recursive input"), Alert::error(_("Recursive input"),
bformat(_("Attempted to include file %1$s in itself! " bformat(_("Attempted to include file %1$s in itself! "