summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-02-05 17:17:37 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-02-05 17:17:37 (GMT)
commit39823768aabddb132af9133105dbd6723dca7814 (patch)
treecda699e6a761ca8f0f22a779153ae5de75f28588 /generic
parent4e0fe7c7f62b10c7f57294c672da5c2c44b26a22 (diff)
parente00820e69f4c9fe0fb91691c104ced37840a140d (diff)
downloadtk-39823768aabddb132af9133105dbd6723dca7814.zip
tk-39823768aabddb132af9133105dbd6723dca7814.tar.gz
tk-39823768aabddb132af9133105dbd6723dca7814.tar.bz2
Fix [ae32eb7e10]: Win + specific text widget configuration : textDisp-18.6, -20.2 -20.3 -20.4 fail
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index a022970..0958986 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -8793,7 +8793,7 @@ FinalizeBaseChunk(
#if TK_DRAW_IN_CONTEXT
newwidth = 0;
CharChunkMeasureChars(chunkPtr, NULL, 0, 0, -1, 0, -1, 0, &newwidth);
- if (newwidth != chunkPtr->width) {
+ if (newwidth < chunkPtr->width) {
widthAdjust += newwidth - chunkPtr->width;
chunkPtr->width = newwidth;
}