SHAPE_LINE_CHAIN: fix segfault
This commit is contained in:
parent
11e2bdf17b
commit
f0e7363f88
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue