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

SHAPE_LINE_CHAIN: fix segfault

parent 11e2bdf1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }