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:
@@ -1371,7 +1371,11 @@ void wxD2DPathData::AddPath(const wxGraphicsPathData* path)
|
|||||||
void wxD2DPathData::CloseSubpath()
|
void wxD2DPathData::CloseSubpath()
|
||||||
{
|
{
|
||||||
// Close sub-path and close the figure.
|
// 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
|
void* wxD2DPathData::GetNativePath() const
|
||||||
|
Reference in New Issue
Block a user