Commit 36e6ea97 authored by Pengpeng Dong's avatar Pengpeng Dong Committed by Alexandre Julliard

gdiplus: Initialize the dead point coordinates in "GpPointF, *ptf" to 0.

parent bccd7549
...@@ -323,8 +323,15 @@ static void round_points(POINT *pti, GpPointF *ptf, INT count) ...@@ -323,8 +323,15 @@ static void round_points(POINT *pti, GpPointF *ptf, INT count)
int i; int i;
for(i = 0; i < count; i++){ for(i = 0; i < count; i++){
pti[i].x = gdip_round(ptf[i].X); if(isnan(ptf[i].X))
pti[i].y = gdip_round(ptf[i].Y); pti[i].x = 0;
else
pti[i].x = gdip_round(ptf[i].X);
if(isnan(ptf[i].Y))
pti[i].y = 0;
else
pti[i].y = gdip_round(ptf[i].Y);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment