← Back to team overview

kicad-developers team mailing list archive

[PATCH 5/5] Schematic cleanup: shortcut if no match can happen

 

---
 eeschema/sch_screen.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/eeschema/sch_screen.cpp b/eeschema/sch_screen.cpp
index 52e86f1..a2655a7 100644
--- a/eeschema/sch_screen.cpp
+++ b/eeschema/sch_screen.cpp
@@ -454,6 +454,9 @@ bool SCH_SCREEN::SchematicCleanUp()
             const bool rhs_isLine = ( rhs_type == SCH_LINE_T );
             const bool rhs_isJunction = (rhs_type == SCH_JUNCTION_T );
 
+            if( !( rhs_isLine || rhs_isJunction ) )
+                continue;
+
             if( lhs_isLine && rhs_isLine )
             {
                 SCH_LINE* line = (SCH_LINE*) item;

References