]> git.lyx.org Git - features.git/commitdiff
Change related to 18445: buffer.fileName() uses .absFilename().
authorRichard Heck <rgheck@comcast.net>
Sat, 26 May 2007 17:33:52 +0000 (17:33 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 26 May 2007 17:33:52 +0000 (17:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18524 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetInclude.cpp

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