summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkScroll.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-05 12:52:35 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-05 12:52:35 (GMT)
commitd9a44369370d90d1b8dfd0decd866879a62715f6 (patch)
tree09201a141bfa1354170c3de9a5580e894a6f4bee /generic/ttk/ttkScroll.c
parent4e1d1269673ab48c37c3da8f289e756f26f6a0e5 (diff)
downloadtk-d9a44369370d90d1b8dfd0decd866879a62715f6.zip
tk-d9a44369370d90d1b8dfd0decd866879a62715f6.tar.gz
tk-d9a44369370d90d1b8dfd0decd866879a62715f6.tar.bz2
Fix [2100430]: ttk::entry widget index must be integer
Diffstat (limited to 'generic/ttk/ttkScroll.c')
-rw-r--r--generic/ttk/ttkScroll.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/generic/ttk/ttkScroll.c b/generic/ttk/ttkScroll.c
index 5615eef..fc305e9 100644
--- a/generic/ttk/ttkScroll.c
+++ b/generic/ttk/ttkScroll.c
@@ -202,10 +202,7 @@ int TtkScrollviewCommand(
Tcl_SetObjResult(interp, Tcl_NewListObj(2, result));
return TCL_OK;
} else if (objc == 3) {
- const char *string = Tcl_GetString(objv[2]);
- if (strcmp(string, "end") == 0) {
- newFirst = s->total;
- } else if (Tcl_GetIntFromObj(interp, objv[2], &newFirst) != TCL_OK) {
+ if (Tcl_GetIntFromObj(interp, objv[2], &newFirst) != TCL_OK) {
return TCL_ERROR;
}
} else {