Tools->insert image: fix to allow filenames with spaces

This commit is contained in:
stefan schippers 2026-01-14 01:09:53 +01:00
parent 2a242cb80a
commit 309697499c
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
if(tclresult()[0]) {
char *str = NULL;
my_strdup2(_ALLOC_ID_, &f, tclresult());
my_mstrcat(_ALLOC_ID_, &str, "flags=image,unscaled\nalpha=0.8\nimage=", f, "\n", NULL);
my_mstrcat(_ALLOC_ID_, &str, "flags=image,unscaled\nalpha=0.8\nimage=\"", f, "\"\n", NULL);
if(strstr(f, ".svg") == f + strlen(f) - 4 ) {
if(tcleval("info exists svg_to_png")[0] == '1') {