diff options
author | fvogel <fvogelnew1@free.fr> | 2015-10-20 08:28:11 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-10-20 08:28:11 (GMT) |
commit | 0d6fe722b85512fe0070d153408bba3e8d725b1a (patch) | |
tree | bc415e4b2c1eb8efed5dfa137c62482111005ae4 /generic/tkEntry.c | |
parent | 6bc08bebbd4985473021dabe1e9a6c9128e58d99 (diff) | |
download | tk-0d6fe722b85512fe0070d153408bba3e8d725b1a.zip tk-0d6fe722b85512fe0070d153408bba3e8d725b1a.tar.gz tk-0d6fe722b85512fe0070d153408bba3e8d725b1a.tar.bz2 |
Fixed bug [1414025] - Thin insertion cursor not visible in entrybug_1414025
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 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) { |