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
This commit is contained in:
Artur Wieczorek
2016-05-04 22:51:51 +02:00
parent a28f1b7f44
commit 6879311b98

View File

@@ -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()