]> git.lyx.org Git - features.git/commitdiff
Minor fixup.
authorRichard Heck <rgheck@comcast.net>
Mon, 8 Mar 2010 13:34:32 +0000 (13:34 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 8 Mar 2010 13:34:32 +0000 (13:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33672 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetInclude.cpp

index 575bfecd6cdadfffc17ae7c4911642ca1471db8b..51ad1335885cc2443643798e781605f188ece35e 100644 (file)
@@ -679,9 +679,7 @@ docstring InsetInclude::xhtml(XHTMLStream & xs, OutputParams const &rp) const
        // We don't (yet) know how to Input or Include non-LyX files.
        // (If we wanted to get really arcane, we could run some tex2html
        // converter on the included file. But that's just masochistic.)
-       string const parent_filename = buffer().absFileName();
-       FileName const included_file = 
-               makeAbsPath(to_utf8(params()["filename"]), onlyPath(parent_filename));
+       FileName const included_file = includedFilename(buffer());
        if (!isLyXFilename(included_file.absFilename())) {
                frontend::Alert::warning(_("Unsupported Inclusion"),
                                         bformat(_("LyX does not know how to include non-LyX files when "