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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user