summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-01-07 14:45:40 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-01-07 14:45:40 (GMT)
commitee8455b769a597dc5d87f89478032b49cf49cdba (patch)
treea3cb4d7fd1d5ec0a86397ab789919fa3e76848ba /generic
parentaec9ede5b3da6947ff19211dab99b56bb5379305 (diff)
downloadtk-ee8455b769a597dc5d87f89478032b49cf49cdba.zip
tk-ee8455b769a597dc5d87f89478032b49cf49cdba.tar.gz
tk-ee8455b769a597dc5d87f89478032b49cf49cdba.tar.bz2
Reverted [7ed6460f] since it fixes an issue unrelated to the bug presented in [3df559ef7c] - Negative bbox width on OS X.bug_3df559ef7c
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 4b7b0db..1be26c4 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;
}