Commit f0e7363f authored by Tomasz Wlostowski's avatar Tomasz Wlostowski Committed by Maciej Suminski

SHAPE_LINE_CHAIN: fix segfault

parent 11e2bdf1
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment