use get_window_count() instead of new_schematic("ntabs"...)

This commit is contained in:
stefan schippers 2023-06-08 11:23:25 +02:00
parent ecd380f5d3
commit f5db2b63f8
1 changed files with 1 additions and 1 deletions

View File

@ -1005,7 +1005,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
Tcl_SetResult(interp, "0",TCL_STATIC);
}
else if(!strcmp(argv[2], "ntabs")) { /* get number of additional tabs (0 = only one tab) */
Tcl_SetResult(interp, my_itoa(new_schematic("ntabs", NULL, NULL)),TCL_VOLATILE);
Tcl_SetResult(interp, my_itoa(get_window_count()), TCL_VOLATILE);
}
break;
case 'p':