diff options
author | fvogel <fvogelnew1@free.fr> | 2015-10-22 22:07:42 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-10-22 22:07:42 (GMT) |
commit | c8f3579bc34bec580577b6955087e17abdef383a (patch) | |
tree | 52fe39f7964163fa6c33afc887949b72ed9d616a /generic | |
parent | fd90a71735ea77931c1195278f06e4dc24f67241 (diff) | |
parent | 0d6fe722b85512fe0070d153408bba3e8d725b1a (diff) | |
download | tk-c8f3579bc34bec580577b6955087e17abdef383a.zip tk-c8f3579bc34bec580577b6955087e17abdef383a.tar.gz tk-c8f3579bc34bec580577b6955087e17abdef383a.tar.bz2 |
Fixed bug [1414025] - Thin insertion cursor not visible in entry
Diffstat (limited to 'generic')
-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 6683cdc..f6ff9b9 100644 --- a/generic/tkEntry.c +++ b/generic/tkEntry.c @@ -1675,7 +1675,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) { |