By-hand cherry-pick of 3c45145401
This commit is contained in:
parent
73053a2177
commit
a3eca13ad3
|
@ -603,12 +603,14 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
|
|||
}
|
||||
else
|
||||
{
|
||||
saveCopyInUndoList( (SCH_ITEM*) item, UNDO_REDO::CHANGED, appendUndo );
|
||||
saveCopyInUndoList( item, UNDO_REDO::CHANGED, appendUndo );
|
||||
appendUndo = true;
|
||||
}
|
||||
|
||||
SCH_ITEM* schItem = (SCH_ITEM*) item;
|
||||
schItem->SetStoredPos( schItem->GetPosition() );
|
||||
item->SetFlags( IS_MOVING );
|
||||
|
||||
if( SCH_ITEM* schItem = dynamic_cast<SCH_ITEM*>( item ) )
|
||||
schItem->SetStoredPos( schItem->GetPosition() );
|
||||
}
|
||||
|
||||
// Set up the starting position and move/drag offset
|
||||
|
|
Loading…
Reference in New Issue