Schematic: move wires always moves the whole line

Discussion here:
https://gitlab.com/kicad/code/kicad/-/issues/13022#note_1205922621
This commit is contained in:
Mike Williams 2022-12-12 14:43:32 -05:00
parent fe01c65794
commit d824b7f506
1 changed files with 2 additions and 2 deletions

View File

@ -1455,10 +1455,10 @@ void SCH_MOVE_TOOL::moveItem( EDA_ITEM* aItem, const VECTOR2I& aDelta )
{
SCH_LINE* line = static_cast<SCH_LINE*>( aItem );
if( aItem->HasFlag( STARTPOINT ) )
if( aItem->HasFlag( STARTPOINT ) || !m_isDrag )
line->MoveStart( aDelta );
if( aItem->HasFlag( ENDPOINT ) )
if( aItem->HasFlag( ENDPOINT ) || !m_isDrag )
line->MoveEnd( aDelta );
break;