diff options
author | jenglish@flightlab.com <jenglish> | 2016-01-25 20:48:08 (GMT) |
---|---|---|
committer | jenglish@flightlab.com <jenglish> | 2016-01-25 20:48:08 (GMT) |
commit | ec61ea523641ebb600d1e9842d62324e63e8a1e9 (patch) | |
tree | e286c00ee2dc370f177d3a081510dbbde55af4c2 /generic/ttk | |
parent | 2870fe2f2202657c1f9d769e46c84a85800fc5a5 (diff) | |
download | tk-ec61ea523641ebb600d1e9842d62324e63e8a1e9.zip tk-ec61ea523641ebb600d1e9842d62324e63e8a1e9.tar.gz tk-ec61ea523641ebb600d1e9842d62324e63e8a1e9.tar.bz2 |
NotebookAddCommand: fix off-by-one error counting objc/objv
when readding an already-managed window with arguments.
Bug reported on tcl-core by Sam Bromley (22 Jan 2016)
Diffstat (limited to 'generic/ttk')
-rw-r--r-- | generic/ttk/ttkNotebook.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/ttk/ttkNotebook.c b/generic/ttk/ttkNotebook.c index 16a8bfe..81a8b64 100644 --- a/generic/ttk/ttkNotebook.c +++ b/generic/ttk/ttkNotebook.c @@ -901,7 +901,7 @@ static int NotebookAddCommand( if (tab->state == TAB_STATE_HIDDEN) { tab->state = TAB_STATE_NORMAL; } - if (ConfigureTab(interp, nb, tab, slaveWindow, objc-4,objv+4) != TCL_OK) { + if (ConfigureTab(interp, nb, tab, slaveWindow, objc-3,objv+3) != TCL_OK) { return TCL_ERROR; } |