]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalSupport.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / ExternalSupport.cpp
index 374de438b4970419047894f3624ca6d3b835a4ff..0b7af3443e8a9d84de57abe6eb1585b2e58e48c5 100644 (file)
@@ -130,7 +130,7 @@ string const doSubstitution(InsetExternalParams const & params,
                                    relToParentPath, use_latex_path,
                                    PROTECT_EXTENSION,
                                    ESCAPE_DOTS);
-               if (FileName(filename).isAbsolute()) {
+               if (FileName::isAbsolute(filename)) {
                        result = subst_path(result, "$$AbsOrRelPathMaster",
                                            abspath, use_latex_path,
                                            PROTECT_EXTENSION,
@@ -296,7 +296,9 @@ void updateExternal(InsetExternalParams const & params,
                                                      ALL_BUT_PATHS);
                                // if file is a relative name, it is interpreted
                                // relative to the master document.
-                               exportdata.addExternalFile(rit->first, source, file);
+                               if (makeAbsPath(file, masterBuffer->filePath()) !=
+                                       params.filename.absFilename())
+                                               exportdata.addExternalFile(rit->first, source, file);
                        }
                }
        }