diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-10-27 16:09:48 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-10-27 16:09:48 (GMT) |
commit | ca42f8d9376a7105c55f82f5ae1f6d6378d9912b (patch) | |
tree | 5d970ff5bca01b96ce229a7ab3f19f031b9ce786 /generic/tkEntry.c | |
parent | cf94275cacccff81abe333bc7b58109ab4637070 (diff) | |
parent | 7939e659ff00720ec9b2468dc748a189d9120be5 (diff) | |
download | tk-ca42f8d9376a7105c55f82f5ae1f6d6378d9912b.zip tk-ca42f8d9376a7105c55f82f5ae1f6d6378d9912b.tar.gz tk-ca42f8d9376a7105c55f82f5ae1f6d6378d9912b.tar.bz2 |
Merge 8.6
Diffstat (limited to 'generic/tkEntry.c')
-rw-r--r-- | generic/tkEntry.c | 8 |
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) { |