summaryrefslogtreecommitdiffstats
path: root/generic/tkEntry.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-10-27 16:09:48 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-10-27 16:09:48 (GMT)
commitca42f8d9376a7105c55f82f5ae1f6d6378d9912b (patch)
tree5d970ff5bca01b96ce229a7ab3f19f031b9ce786 /generic/tkEntry.c
parentcf94275cacccff81abe333bc7b58109ab4637070 (diff)
parent7939e659ff00720ec9b2468dc748a189d9120be5 (diff)
downloadtk-ca42f8d9376a7105c55f82f5ae1f6d6378d9912b.zip
tk-ca42f8d9376a7105c55f82f5ae1f6d6378d9912b.tar.gz
tk-ca42f8d9376a7105c55f82f5ae1f6d6378d9912b.tar.bz2
Merge 8.6
Diffstat (limited to 'generic/tkEntry.c')
-rw-r--r--generic/tkEntry.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkEntry.c b/generic/tkEntry.c
index a6743d6..64a2b29 100644
--- a/generic/tkEntry.c
+++ b/generic/tkEntry.c
@@ -971,8 +971,6 @@ EntryWidgetObjCmd(
index = entryPtr->leftIndex;
switch (Tk_GetScrollInfoObj(interp, objc, objv, &fraction,
&count)) {
- case TK_SCROLL_ERROR:
- goto error;
case TK_SCROLL_MOVETO:
index = (int) ((fraction * entryPtr->numChars) + 0.5);
break;
@@ -990,6 +988,8 @@ EntryWidgetObjCmd(
case TK_SCROLL_UNITS:
index += count;
break;
+ default:
+ goto error;
}
}
if (index + 1 >= entryPtr->numChars + 1) {
@@ -4286,8 +4286,6 @@ SpinboxWidgetObjCmd(
index = entryPtr->leftIndex;
switch (Tk_GetScrollInfoObj(interp, objc, objv, &fraction,
&count)) {
- case TK_SCROLL_ERROR:
- goto error;
case TK_SCROLL_MOVETO:
index = ((fraction * entryPtr->numChars) + 0.5);
break;
@@ -4306,6 +4304,8 @@ SpinboxWidgetObjCmd(
case TK_SCROLL_UNITS:
index += count;
break;
+ default:
+ goto error;
}
}
if (index + 1 >= entryPtr->numChars + 1) {