summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-02-05 17:17:03 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-02-05 17:17:03 (GMT)
commite00820e69f4c9fe0fb91691c104ced37840a140d (patch)
tree25823cc797995137b819b9abb8f885934b2e038e /generic/tkTextDisp.c
parent0691533b9281b179d99856732c3eb28f6a4256cf (diff)
parent161ab94f1c1e0e903cd217f89ff6981d9cd74923 (diff)
downloadtk-e00820e69f4c9fe0fb91691c104ced37840a140d.zip
tk-e00820e69f4c9fe0fb91691c104ced37840a140d.tar.gz
tk-e00820e69f4c9fe0fb91691c104ced37840a140d.tar.bz2
Fix [ae32eb7e10]: Win + specific text widget configuration : textDisp-18.6, -20.2 -20.3 -20.4 fail
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r--generic/tkTextDisp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 095bb5e..371e910 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;
}