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

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 4 06:56:50 CDT 2007


Module: wine
Branch: master
Commit: c60c030c95b17e089fd9b1302c5391fbf708413c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c60c030c95b17e089fd9b1302c5391fbf708413c

Author: Evan Stade <estade at gmail.com>
Date:   Tue Jul  3 11:39:22 2007 -0700

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

---

 dlls/gdiplus/graphics.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 453cbe5..4765e33 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -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);




More information about the wine-cvs mailing list