From 2c40aa6278bdd6e9cfc724d863b23159bcea0e50 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 29 Jun 2024 15:51:31 +0100 Subject: [PATCH] Revert part of previous commit so user-supplied MR will apply cleanly. --- eeschema/tools/ee_point_editor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eeschema/tools/ee_point_editor.cpp b/eeschema/tools/ee_point_editor.cpp index 6f3d09b04c..b9499aa544 100644 --- a/eeschema/tools/ee_point_editor.cpp +++ b/eeschema/tools/ee_point_editor.cpp @@ -1262,9 +1262,8 @@ int EE_POINT_EDITOR::removeCorner( const TOOL_EVENT& aEvent ) SCH_SHAPE* shape = static_cast( m_editPoints->GetParent() ); SHAPE_LINE_CHAIN& poly = shape->GetPolyShape().Outline( 0 ); SCH_COMMIT commit( m_toolMgr ); - size_t ptCount = poly.GetPointCount(); - if( ptCount < 3 || ( ptCount == 3 && m_editPoints->GetParent()->Type() == SCH_RULE_AREA_T ) ) + if( poly.GetPointCount() <= 3 ) return 0; commit.Modify( shape, m_frame->GetScreen() );