summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2022-10-28 15:19:29 (GMT)
committerdgp <dgp@users.sourceforge.net>2022-10-28 15:19:29 (GMT)
commitbccd593f9b95af88a31221402a12abc53f38485f (patch)
tree5f3e3d7634ddad717f59251f34530c26ec8c424c /generic/ttk
parent7a1d6e12e1c747db49ad887f7ce1d143f3dbcff7 (diff)
parenteadd3b5f08832d7d4ac7be519985b1977f70623b (diff)
downloadtk-bccd593f9b95af88a31221402a12abc53f38485f.zip
tk-bccd593f9b95af88a31221402a12abc53f38485f.tar.gz
tk-bccd593f9b95af88a31221402a12abc53f38485f.tar.bz2
merge 8.6
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkScroll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/ttk/ttkScroll.c b/generic/ttk/ttkScroll.c
index 9cf8eae..c3b847a 100644
--- a/generic/ttk/ttkScroll.c
+++ b/generic/ttk/ttkScroll.c
@@ -229,8 +229,6 @@ int TtkScrollviewCommand(
int count;
switch (Tk_GetScrollInfoObj(interp, objc, objv, &fraction, &count)) {
- case TK_SCROLL_ERROR:
- return TCL_ERROR;
case TK_SCROLL_MOVETO:
newFirst = (int) ((fraction * s->total) + 0.5);
break;
@@ -242,6 +240,8 @@ int TtkScrollviewCommand(
newFirst = s->first + count * perPage;
break;
}
+ default:
+ return TCL_ERROR;
}
}