gdiplus: Do not convert range_rect.X twice.

This commit is contained in:
Dmitry Timoshkov 2012-08-24 15:42:47 +09:00 committed by Alexandre Julliard
parent 28821a924c
commit 7a1ccd8abe
1 changed files with 1 additions and 1 deletions

View File

@ -4909,7 +4909,7 @@ static GpStatus measure_ranges_callback(HDC hdc,
GetTextExtentExPointW(hdc, string + index, range_end - index,
INT_MAX, NULL, NULL, &range_size);
range_rect.Width = (bounds->X + range_size.cx - range_rect.X) / args->rel_width;
range_rect.Width = (bounds->X + range_size.cx) / args->rel_width - range_rect.X;
stat = GdipCombineRegionRect(args->regions[i], &range_rect, CombineModeUnion);
if (stat != Ok)