Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 8dcb050

Browse files
Merge branch 'bugfix-11564' of https://github.com/runrevmichael/livecode into bugfix-11564
2 parents 7237b06 + 0d6ecf9 commit 8dcb050

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libgraphics/src/w32text.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,8 @@ static void __MCGContextDrawPlatformTextScreen(MCGContextRef self, const unichar
352352
MCGFloat t_overhang;
353353
if (t_success)
354354
{
355-
uindex_t t_length;
356-
t_length = p_length >> 1;
357355
ABCFLOAT t_abc_widths;
358-
if (GetCharABCWidthsFloatW(t_gdicontext, *(p_text + t_length), *(p_text + t_length),&t_abc_widths) != 0)
356+
if (GetCharABCWidthsFloatW(t_gdicontext, *(p_text + p_length - 1), *(p_text + p_length - 1), &t_abc_widths) != 0)
359357
t_overhang = t_abc_widths . abcfA + t_abc_widths . abcfC;
360358
else
361359
t_overhang = 0.0f;

0 commit comments

Comments
 (0)