mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Properly name an uncompressed sgvz file.
Some tools may rely on the extension and do not actually check whether a svg file is compressed or not.
This commit is contained in:
parent
cbad159ac2
commit
bd9f5408cf
@ -872,6 +872,8 @@ string const unzippedFileName(string const & zipped_file)
|
||||
string const ext = getExtension(zipped_file);
|
||||
if (ext == "gz" || ext == "z" || ext == "Z")
|
||||
return changeExtension(zipped_file, string());
|
||||
else if (ext == "svgz")
|
||||
return changeExtension(zipped_file, "svg");
|
||||
return onlyPath(zipped_file) + "unzipped_" + onlyFileName(zipped_file);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user