PDF: Fix svgIn path error.

We were duplicating the temp directory; this didn't show up
on macOS or linux because there we use absolute paths for
the temp directory.

Closes #7431.
This commit is contained in:
John MacFarlane 2021-07-16 11:39:02 -07:00
parent 06408d08e5
commit 18270c7a39

View file

@ -217,7 +217,7 @@ convertImage opts tmpdir fname = do
where
pngOut = normalise $ replaceDirectory (replaceExtension fname ".png") tmpdir
pdfOut = normalise $ replaceDirectory (replaceExtension fname ".pdf") tmpdir
svgIn = normalise $ tmpdir </> fname
svgIn = normalise fname
mime = getMimeType fname
doNothing = return (Right fname)