From 6879311b98e30951c52c87813a5919009b46a182 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Wed, 4 May 2016 22:51:51 +0200 Subject: [PATCH] Fixed appending a line to wxGraphicsPath with GDI+ renderer. New line appended to the path should be started explicitly at the current point. See #17520 --- src/msw/graphics.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/msw/graphics.cpp b/src/msw/graphics.cpp index b18cd52a73..b554b343d1 100644 --- a/src/msw/graphics.cpp +++ b/src/msw/graphics.cpp @@ -1190,7 +1190,9 @@ void wxGDIPlusPathData::MoveToPoint( wxDouble x , wxDouble y ) void wxGDIPlusPathData::AddLineToPoint( wxDouble x , wxDouble y ) { - m_path->AddLine((REAL) x,(REAL) y,(REAL) x,(REAL) y); + PointF start; + m_path->GetLastPoint(&start); + m_path->AddLine(start.X, start.Y, (REAL)x, (REAL)y); } void wxGDIPlusPathData::CloseSubpath()