summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-12-23 18:41:00 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-12-23 18:41:00 (GMT)
commitbc3690ab244a2bff5ea3ca032bc3cb6047b8d777 (patch)
treef246ff5fe5db0dcd43e641ecc34f80d28fcefd4b
parente10f92249af8322f5e4d9f1fae6bcdd21f00924d (diff)
downloadtk-bc3690ab244a2bff5ea3ca032bc3cb6047b8d777.zip
tk-bc3690ab244a2bff5ea3ca032bc3cb6047b8d777.tar.gz
tk-bc3690ab244a2bff5ea3ca032bc3cb6047b8d777.tar.bz2
Fix [3df559ef7c] - Negative bbox width on OS X. Tested OK on Windows with TK_LAYOUT_WITH_BASE_CHUNKS being defined.
-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..1be26c4 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -7819,7 +7819,7 @@ CharChunkMeasureChars(
MeasureChars(tkfont, chars, charsLen, 0, bstart,
0, -1, 0, &widthUntilStart);
- xDisplacement = startX - widthUntilStart - chunkPtr->x;
+ xDisplacement = startX - widthUntilStart - ciPtr->baseChunkPtr->x;
}
fit = MeasureChars(tkfont, chars, charsLen, 0, bend,