summaryrefslogtreecommitdiffstats
path: root/win/tkWinFont.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-01-07 15:26:07 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-01-07 15:26:07 (GMT)
commit5be70aeb76c7c6ba94c9288632ddf1c094108f0e (patch)
tree948b157f22cb5311dffce5a75dd4494967e003be /win/tkWinFont.c
parent07c65ee9c99b263ed8b6aefb42c7c5f6e47a441e (diff)
parent2aa8148b1c0d4bfd43195800910c9c6eec0ec8a2 (diff)
downloadtk-5be70aeb76c7c6ba94c9288632ddf1c094108f0e.zip
tk-5be70aeb76c7c6ba94c9288632ddf1c094108f0e.tar.gz
tk-5be70aeb76c7c6ba94c9288632ddf1c094108f0e.tar.bz2
Merge core-8-6-branch
Diffstat (limited to 'win/tkWinFont.c')
-rw-r--r--win/tkWinFont.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/win/tkWinFont.c b/win/tkWinFont.c
index 47c4c3c..860451b 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);
}
/*