]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetGraphics.cpp
Does not compile on older gcc.
[lyx.git] / src / insets / InsetGraphics.cpp
index b4ddd77a1ab795d7261c18b05f7e697920e3b6f5..62efa84dc02978e1be91fcb6873c47ca05526bad 100644 (file)
@@ -575,7 +575,7 @@ copyToDirIfNeeded(DocFileName const & file, string const & dir)
        if (rtrim(only_path, "/") == rtrim(dir, "/"))
                return make_pair(IDENTICAL_PATHS, FileName(file_in));
 
-       string mangled = file.mangledFileName();
+       string mangled = file.mangledFileName(empty_string(), false, true);
        if (theFormats().isZippedFile(file)) {
                // We need to change _eps.gz to .eps.gz. The mangled name is
                // still unique because of the counter in mangledFileName().