diff options
author | fvogel <fvogelnew1@free.fr> | 2015-10-22 22:11:42 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-10-22 22:11:42 (GMT) |
commit | dea673ceac775d33832c9f3d2125e742abd1de25 (patch) | |
tree | 1fc3d8799a06dc85f03cfd0235321e8563122888 /generic/tkEntry.c | |
parent | 3312ae0191a2262e8cb4d58e82705e5788299c21 (diff) | |
parent | f43efb6344a63c6b5ad74a5d24029d60c2a3b958 (diff) | |
download | tk-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.c | 2 |
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) { |