Commit 400cfb0f authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

gdiplus: Avoid division by zero in SOFTWARE_GdipDrawThinPath.

parent 3c7415f7
......@@ -3615,6 +3615,9 @@ static GpStatus SOFTWARE_GdipDrawThinPath(GpGraphics *graphics, GpPen *pen, GpPa
end_pointi.X = floorf(end_point.X);
end_pointi.Y = floorf(end_point.Y);
if(start_pointi.X == end_pointi.X && start_pointi.Y == end_pointi.Y)
continue;
/* draw line segment */
if (abs(start_pointi.Y - end_pointi.Y) > abs(start_pointi.X - end_pointi.X))
{
......
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