From bc3690ab244a2bff5ea3ca032bc3cb6047b8d777 Mon Sep 17 00:00:00 2001 From: fvogel Date: Fri, 23 Dec 2016 18:41:00 +0000 Subject: Fix [3df559ef7c] - Negative bbox width on OS X. Tested OK on Windows with TK_LAYOUT_WITH_BASE_CHUNKS being defined. --- generic/tkTextDisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v0.12