From f5db2b63f8830dd26c27bd81dc4826ef0d75f56a Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Thu, 8 Jun 2023 11:23:25 +0200 Subject: [PATCH] use get_window_count() instead of new_schematic("ntabs"...) --- src/scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scheduler.c b/src/scheduler.c index 24b8daae..cc6e581d 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -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':