diff options
author | fvogelnew1@free.fr <fvogel> | 2016-12-23 18:41:00 (GMT) |
---|---|---|
committer | fvogelnew1@free.fr <fvogel> | 2016-12-23 18:41:00 (GMT) |
commit | 2ce62b2dc9dd8063bdc253ec1b861cad375beab2 (patch) | |
tree | f246ff5fe5db0dcd43e641ecc34f80d28fcefd4b /generic/tkTextDisp.c | |
parent | a0e908c4b6e1ad032f20de2bcb9c3fbdd64f3363 (diff) | |
download | tk-2ce62b2dc9dd8063bdc253ec1b861cad375beab2.zip tk-2ce62b2dc9dd8063bdc253ec1b861cad375beab2.tar.gz tk-2ce62b2dc9dd8063bdc253ec1b861cad375beab2.tar.bz2 |
Fix [3df559ef7c] - Negative bbox width on OS X. Tested OK on Windows with TK_LAYOUT_WITH_BASE_CHUNKS being defined.
Diffstat (limited to 'generic/tkTextDisp.c')
-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, |