summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-01-07 14:51:58 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-01-07 14:51:58 (GMT)
commit07c65ee9c99b263ed8b6aefb42c7c5f6e47a441e (patch)
tree99ec164329291d5c94759cce0d5c6a72dd875e2f /generic/tkTextDisp.c
parent90e21ab406bd1e438de68fcc7790a3534c37ea60 (diff)
downloadtk-07c65ee9c99b263ed8b6aefb42c7c5f6e47a441e.zip
tk-07c65ee9c99b263ed8b6aefb42c7c5f6e47a441e.tar.gz
tk-07c65ee9c99b263ed8b6aefb42c7c5f6e47a441e.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 2171cd0..c060687 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;
}