Fixed closing sub-path of wxGraphicsPath with Direct2D renderer.

To ensure compatibility with Cairo renderer the new sub-path should be started at the joined endpoint of the current (just closed) sub-path.

Closes #17532
This commit is contained in:
Artur Wieczorek
2016-05-12 21:33:49 +02:00
parent 4014000a98
commit bd55ce4d37

View File

@@ -1371,7 +1371,11 @@ void wxD2DPathData::AddPath(const wxGraphicsPathData* path)
void wxD2DPathData::CloseSubpath()
{
// Close sub-path and close the figure.
EndFigure(D2D1_FIGURE_END_CLOSED);
if ( m_figureOpened )
{
EndFigure(D2D1_FIGURE_END_CLOSED);
MoveToPoint(m_figureStart.x, m_figureStart.y);
}
}
void* wxD2DPathData::GetNativePath() const