diff options
author | fvogel <fvogelnew1@free.fr> | 2016-12-23 18:41:00 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-12-23 18:41:00 (GMT) |
commit | bc3690ab244a2bff5ea3ca032bc3cb6047b8d777 (patch) | |
tree | f246ff5fe5db0dcd43e641ecc34f80d28fcefd4b | |
parent | e10f92249af8322f5e4d9f1fae6bcdd21f00924d (diff) | |
download | tk-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.c | 2 |
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, |