summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-12-14 11:46:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-12-14 11:46:52 (GMT)
commit5357570e1f8319ecea3ce3c930913200ebc485dd (patch)
tree5eb91720f2a780a9857925f899b41a90af702333 /generic/ttk
parentd3accd1f1590ad5fd9a5bac5f611912c8dd9809c (diff)
parent953c81157e52a85fb0e0322336b34ee6367ea6d4 (diff)
downloadtk-5357570e1f8319ecea3ce3c930913200ebc485dd.zip
tk-5357570e1f8319ecea3ce3c930913200ebc485dd.tar.gz
tk-5357570e1f8319ecea3ce3c930913200ebc485dd.tar.bz2
Merge 8.6. Make anchorStrings, reliefString and justifyString MODULE_SCOPE
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkEntry.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/ttk/ttkEntry.c b/generic/ttk/ttkEntry.c
index 0069199..b0502a4 100644
--- a/generic/ttk/ttkEntry.c
+++ b/generic/ttk/ttkEntry.c
@@ -1396,10 +1396,10 @@ EntryIndex(
if (idx == TCL_INDEX_NONE) {
idx = 0;
} else if (idx > entryPtr->entry.numChars) {
- idx = entryPtr->entry.numChars;
- }
- *indexPtr = idx;
- return TCL_OK;
+ idx = entryPtr->entry.numChars;
+ }
+ *indexPtr = idx;
+ return TCL_OK;
}
string = Tcl_GetStringFromObj(indexObj, &length);