summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authorjenglish@flightlab.com <jenglish>2016-01-25 20:48:08 (GMT)
committerjenglish@flightlab.com <jenglish>2016-01-25 20:48:08 (GMT)
commitec61ea523641ebb600d1e9842d62324e63e8a1e9 (patch)
treee286c00ee2dc370f177d3a081510dbbde55af4c2 /generic/ttk
parent2870fe2f2202657c1f9d769e46c84a85800fc5a5 (diff)
downloadtk-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.c2
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;
}