summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2016-12-23 18:41:00 (GMT)
committerfvogelnew1@free.fr <fvogel>2016-12-23 18:41:00 (GMT)
commit2ce62b2dc9dd8063bdc253ec1b861cad375beab2 (patch)
treef246ff5fe5db0dcd43e641ecc34f80d28fcefd4b /generic/tkTextDisp.c
parenta0e908c4b6e1ad032f20de2bcb9c3fbdd64f3363 (diff)
downloadtk-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.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,