]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalSupport.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / ExternalSupport.cpp
index 79d98712bd279983ef22aa8b706bda79d8c82868..0b7af3443e8a9d84de57abe6eb1585b2e58e48c5 100644 (file)
@@ -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);
                        }
                }
        }