From 8ca8f83a18c17dd7d218174efcafa7a0debd721d Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Tue, 27 Dec 2022 12:14:18 -0500 Subject: [PATCH] Schematic: sheet pin dragging special case needs to check endpoints Otherwise we'll force the wrong end of a line to be special-cased --- eeschema/tools/sch_move_tool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/tools/sch_move_tool.cpp b/eeschema/tools/sch_move_tool.cpp index 328d9bfce8..a494a6f900 100644 --- a/eeschema/tools/sch_move_tool.cpp +++ b/eeschema/tools/sch_move_tool.cpp @@ -744,9 +744,9 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent ) // along the sheet edges. for( const auto& [pin, lineEnd] : m_specialCaseSheetPins ) { - if( lineEnd.second ) + if( lineEnd.second && lineEnd.first->HasFlag( STARTPOINT ) ) lineEnd.first->SetStartPoint( pin->GetPosition() ); - else + else if( !lineEnd.second && lineEnd.first->HasFlag( ENDPOINT ) ) lineEnd.first->SetEndPoint( pin->GetPosition() ); } }