summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2016-01-25 20:39:31 (GMT)
committerjenglish <jenglish@flightlab.com>2016-01-25 20:39:31 (GMT)
commit48ef3bc66f0806a4b54f4abb9888a5fc53e78d33 (patch)
treee8914babfcb2e9e1e915ef0391a1929360939051 /generic/ttk
parentac9442c6d07c589501a97b710d1608b1bb68a7dc (diff)
downloadtk-48ef3bc66f0806a4b54f4abb9888a5fc53e78d33.zip
tk-48ef3bc66f0806a4b54f4abb9888a5fc53e78d33.tar.gz
tk-48ef3bc66f0806a4b54f4abb9888a5fc53e78d33.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 551f4a6..dd757cb 100644
--- a/generic/ttk/ttkNotebook.c
+++ b/generic/ttk/ttkNotebook.c
@@ -902,7 +902,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;
}