diff options
author | fvogel <fvogelnew1@free.fr> | 2021-05-02 13:28:07 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2021-05-02 13:28:07 (GMT) |
commit | afcb734b051b7d9873d15d3ce4330960c17e15b8 (patch) | |
tree | 52c0281a4bdb952d1fdb6e20b9ed5522936bba6f | |
parent | d15529ddfbf772af50673597f6d365cda6d81b1d (diff) | |
download | tk-afcb734b051b7d9873d15d3ce4330960c17e15b8.zip tk-afcb734b051b7d9873d15d3ce4330960c17e15b8.tar.gz tk-afcb734b051b7d9873d15d3ce4330960c17e15b8.tar.bz2 |
Backout previous commit, this is not the right way.
-rw-r--r-- | generic/ttk/ttkEntry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/ttk/ttkEntry.c b/generic/ttk/ttkEntry.c index 6898fe1..36e613e 100644 --- a/generic/ttk/ttkEntry.c +++ b/generic/ttk/ttkEntry.c @@ -1393,7 +1393,7 @@ EntryIndex( const char *string; if (TCL_OK == TkGetIntForIndex(indexObj, entryPtr->entry.numChars - 1, 1, &idx)) { - if (idx < 0) { + if (idx == TCL_INDEX_NONE) { idx = 0; } else if (idx > entryPtr->entry.numChars) { idx = entryPtr->entry.numChars; |