SHAPE_LINE_CHAIN: fix segfault

This commit is contained in:
Tomasz Wlostowski 2015-02-20 10:37:25 +01:00 committed by Maciej Suminski
parent 11e2bdf17b
commit f0e7363f88
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ SHAPE_LINE_CHAIN& SHAPE_LINE_CHAIN::Simplify()
else if( PointCount() == 2 )
{
if( m_points[0] == m_points[1] )
m_points.erase( m_points.end() );
m_points.pop_back();
return *this;
}