Command line: Fix auto-guessing of SVG file name.

This commit is contained in:
Mario Hüttel 2019-03-15 17:56:53 +01:00
parent b0c25a4bcf
commit 33deba8ca4

4
main.c
View File

@ -182,8 +182,8 @@ int main(int argc, char **argv)
if (!pdfname) if (!pdfname)
pdfname = g_strdup_printf("./%s.pdf", basename); pdfname = g_strdup_printf("./%s.pdf", basename);
if (!pdfname) if (!svgname)
pdfname = g_strdup_printf("./%s.svg", basename); svgname = g_strdup_printf("./%s.svg", basename);
command_line_convert_gds(gds_name, pdfname, texname, pdf, tikz, command_line_convert_gds(gds_name, pdfname, texname, pdf, tikz,
mappingname, cellname, (double)scale, mappingname, cellname, (double)scale,