]> git.lyx.org Git - features.git/commitdiff
Fix for bug 5522, by Sergiu Carpov.
authorRichard Heck <rgheck@comcast.net>
Fri, 10 Jul 2009 16:21:47 +0000 (16:21 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 10 Jul 2009 16:21:47 +0000 (16:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30453 a592a061-630c-0410-9148-cb99ea01b6c8

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);
                        }
                }
        }