]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetGraphics.cpp
Math.lyx, Tutorial.lyx: fix some typos spotted by a user
[lyx.git] / src / insets / InsetGraphics.cpp
index 1b7e43d974cbae3d26f7164ad7c6e220a1ac1a16..9962af603960154d06351574d86660bda351c15c 100644 (file)
@@ -487,7 +487,7 @@ copyToDirIfNeeded(DocFileName const & file, string const & dir)
        string const file_in = file.absFileName();
        string const only_path = onlyPath(file_in);
        if (rtrim(onlyPath(file_in) , "/") == rtrim(dir, "/"))
-               return make_pair(IDENTICAL_PATHS, file_in);
+               return make_pair(IDENTICAL_PATHS, FileName(file_in));
 
        string mangled = file.mangledFileName();
        if (formats.isZippedFile(file)) {