diff options
author | fvogel <fvogelnew1@free.fr> | 2017-01-07 15:01:22 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2017-01-07 15:01:22 (GMT) |
commit | 3ccac6ac9f0becb6bb86517420e1c2c5f2dae06e (patch) | |
tree | c7e63809c08b57af95251b0d4833fdcd1664a52b /win | |
parent | 297d6b201c940ded0bf08c3e6302275f6e933241 (diff) | |
parent | 09433140c6105863a449e366525f67083a5295aa (diff) | |
download | tk-3ccac6ac9f0becb6bb86517420e1c2c5f2dae06e.zip tk-3ccac6ac9f0becb6bb86517420e1c2c5f2dae06e.tar.gz tk-3ccac6ac9f0becb6bb86517420e1c2c5f2dae06e.tar.bz2 |
Fix [3df559ef7c] - Negative bbox width on OS X.
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinFont.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/win/tkWinFont.c b/win/tkWinFont.c index 021ae1c..d0e3309 100644 --- a/win/tkWinFont.c +++ b/win/tkWinFont.c @@ -1407,9 +1407,13 @@ TkpDrawCharsInContext( * whole (not just the range) string when * drawing. */ { + int widthUntilStart; + (void) numBytes; /*unused*/ + + Tk_MeasureChars(tkfont, source, rangeStart, -1, 0, &widthUntilStart); Tk_DrawChars(display, drawable, gc, tkfont, source + rangeStart, - rangeLength, x, y); + rangeLength, x+widthUntilStart, y); } /* |