summaryrefslogtreecommitdiffstats
path: root/generic/tkEntry.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-10-20 08:28:11 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-10-20 08:28:11 (GMT)
commit0d6fe722b85512fe0070d153408bba3e8d725b1a (patch)
treebc415e4b2c1eb8efed5dfa137c62482111005ae4 /generic/tkEntry.c
parent6bc08bebbd4985473021dabe1e9a6c9128e58d99 (diff)
downloadtk-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.c2
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) {