summaryrefslogtreecommitdiffstats
path: root/generic/tkEntry.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-10-22 22:11:42 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-10-22 22:11:42 (GMT)
commitdea673ceac775d33832c9f3d2125e742abd1de25 (patch)
tree1fc3d8799a06dc85f03cfd0235321e8563122888 /generic/tkEntry.c
parent3312ae0191a2262e8cb4d58e82705e5788299c21 (diff)
parentf43efb6344a63c6b5ad74a5d24029d60c2a3b958 (diff)
downloadtk-dea673ceac775d33832c9f3d2125e742abd1de25.zip
tk-dea673ceac775d33832c9f3d2125e742abd1de25.tar.gz
tk-dea673ceac775d33832c9f3d2125e742abd1de25.tar.bz2
Fixed bug [1414025] - Thin insertion cursor not visible in entry
Diffstat (limited to 'generic/tkEntry.c')
-rw-r--r--generic/tkEntry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkEntry.c b/generic/tkEntry.c
index 3ad9acd..036d1e2 100644
--- a/generic/tkEntry.c
+++ b/generic/tkEntry.c
@@ -1680,7 +1680,7 @@ DisplayEntry(
Tk_CharBbox(entryPtr->textLayout, entryPtr->insertPos, &cursorX, NULL,
NULL, NULL);
cursorX += entryPtr->layoutX;
- cursorX -= (entryPtr->insertWidth)/2;
+ cursorX -= (entryPtr->insertWidth == 1) ? 1 : (entryPtr->insertWidth)/2;
Tk_SetCaretPos(entryPtr->tkwin, cursorX, baseY - fm.ascent,
fm.ascent + fm.descent);
if (entryPtr->insertPos >= entryPtr->leftIndex && cursorX < xBound) {