Make closing sub-path of wxGraphicsPath with GDI+ renderer compatible with Cairo renderer.
Cairo renderer places MOVE_TO element into the path immediately after after the CLOSE_PATH element so to ensure that GDI+ will behave in the same way the new sub-path should be started at the joined endpoint of the current just closed sub-path. See #17532
This commit is contained in:
@@ -1245,8 +1245,7 @@ void wxGDIPlusPathData::CloseSubpath()
|
|||||||
// Since native GDI+ renderer doesn't move its current point
|
// Since native GDI+ renderer doesn't move its current point
|
||||||
// to the starting point of the figure we need to maintain
|
// to the starting point of the figure we need to maintain
|
||||||
// it on our own in this case.
|
// it on our own in this case.
|
||||||
m_logCurrentPoint = m_figureStart;
|
MoveToPoint(m_figureStart.X, m_figureStart.Y);
|
||||||
m_logCurrentPointSet = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1322,8 +1321,7 @@ void wxGDIPlusPathData::AddRectangle( wxDouble x, wxDouble y, wxDouble w, wxDoub
|
|||||||
// current point is not moved to the starting point of the figure
|
// current point is not moved to the starting point of the figure
|
||||||
// (the same case as with CloseFigure) so we need to maintain it
|
// (the same case as with CloseFigure) so we need to maintain it
|
||||||
// on our own in this case.
|
// on our own in this case.
|
||||||
m_logCurrentPoint = PointF((REAL)x, (REAL)y);
|
MoveToPoint(x, y);
|
||||||
m_logCurrentPointSet = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGDIPlusPathData::AddPath( const wxGraphicsPathData* path )
|
void wxGDIPlusPathData::AddPath( const wxGraphicsPathData* path )
|
||||||
|
Reference in New Issue
Block a user