gdiplus: Call EndPath() in GdipDrawLineI in case there is an open path.

This commit is contained in:
Evan Stade 2007-07-03 11:39:22 -07:00 committed by Alexandre Julliard
parent d9ef172e04
commit c60c030c95
1 changed files with 1 additions and 0 deletions

View File

@ -253,6 +253,7 @@ GpStatus WINGDIPAPI GdipDrawLineI(GpGraphics *graphics, GpPen *pen, INT x1,
return InvalidParameter;
save_state = SaveDC(graphics->hdc);
EndPath(graphics->hdc);
SelectObject(graphics->hdc, pen->gdipen);
MoveToEx(graphics->hdc, x1, y1, NULL);