Schematic: sheet pin dragging special case needs to check endpoints
Otherwise we'll force the wrong end of a line to be special-cased
This commit is contained in:
parent
33b774685b
commit
8ca8f83a18
|
@ -744,9 +744,9 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
|
||||||
// along the sheet edges.
|
// along the sheet edges.
|
||||||
for( const auto& [pin, lineEnd] : m_specialCaseSheetPins )
|
for( const auto& [pin, lineEnd] : m_specialCaseSheetPins )
|
||||||
{
|
{
|
||||||
if( lineEnd.second )
|
if( lineEnd.second && lineEnd.first->HasFlag( STARTPOINT ) )
|
||||||
lineEnd.first->SetStartPoint( pin->GetPosition() );
|
lineEnd.first->SetStartPoint( pin->GetPosition() );
|
||||||
else
|
else if( !lineEnd.second && lineEnd.first->HasFlag( ENDPOINT ) )
|
||||||
lineEnd.first->SetEndPoint( pin->GetPosition() );
|
lineEnd.first->SetEndPoint( pin->GetPosition() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue