]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsConverter.cpp
Fix preview with a nested preview not being shown (#10795)
[lyx.git] / src / graphics / GraphicsConverter.cpp
index 598e108b73a153f1882eb8c618c747936b6f4936..f00f017e2e220e125e3684b0a9f7251b86292d7d 100644 (file)
@@ -381,9 +381,9 @@ static void build_script(string const & doc_fname,
 
                // If two formats share the same extension we may get identical names
                if (outfile == infile && conv.result_file().empty()) {
-                       TempFile tempfile(addExtension("gconvertXXXXXX", conv.To()->extension()));
-                       tempfile.setAutoRemove(false);
-                       outfile = tempfile.name().toFilesystemEncoding();
+                       TempFile tmpfile(addExtension("gconvertXXXXXX", conv.To()->extension()));
+                       tmpfile.setAutoRemove(false);
+                       outfile = tmpfile.name().toFilesystemEncoding();
                }
 
                if (!theConverters().checkAuth(conv, doc_fname))