diff options
author | fvogel <fvogelnew1@free.fr> | 2017-01-07 15:26:07 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2017-01-07 15:26:07 (GMT) |
commit | 5be70aeb76c7c6ba94c9288632ddf1c094108f0e (patch) | |
tree | 948b157f22cb5311dffce5a75dd4494967e003be /unix/tkUnixFont.c | |
parent | 07c65ee9c99b263ed8b6aefb42c7c5f6e47a441e (diff) | |
parent | 2aa8148b1c0d4bfd43195800910c9c6eec0ec8a2 (diff) | |
download | tk-5be70aeb76c7c6ba94c9288632ddf1c094108f0e.zip tk-5be70aeb76c7c6ba94c9288632ddf1c094108f0e.tar.gz tk-5be70aeb76c7c6ba94c9288632ddf1c094108f0e.tar.bz2 |
Merge core-8-6-branch
Diffstat (limited to 'unix/tkUnixFont.c')
-rw-r--r-- | unix/tkUnixFont.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/tkUnixFont.c b/unix/tkUnixFont.c index 4a466f1..0c663a3 100644 --- a/unix/tkUnixFont.c +++ b/unix/tkUnixFont.c @@ -1414,10 +1414,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); } /* |