Fixed closing sub-path of wxGraphicsPath with GDI+ renderer.

Ensure that sub-path being closed contains at least one point.

See #17525.
This commit is contained in:
Artur Wieczorek
2016-05-08 19:26:02 +02:00
parent 17e24fec73
commit 24dfd62fc0

View File

@@ -1236,6 +1236,9 @@ void wxGDIPlusPathData::CloseSubpath()
{
if( m_figureOpened )
{
// Ensure that sub-path being closed contains at least one point.
m_path->AddLine(m_logCurrentPoint, m_logCurrentPoint);
m_path->CloseFigure();
m_figureOpened = false;
// Since native GDI+ renderer doesn't move its current point