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