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
|
else
|
||||||
{
|
{
|
||||||
saveCopyInUndoList( (SCH_ITEM*) item, UNDO_REDO::CHANGED, appendUndo );
|
saveCopyInUndoList( item, UNDO_REDO::CHANGED, appendUndo );
|
||||||
appendUndo = true;
|
appendUndo = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
SCH_ITEM* schItem = (SCH_ITEM*) item;
|
item->SetFlags( IS_MOVING );
|
||||||
schItem->SetStoredPos( schItem->GetPosition() );
|
|
||||||
|
if( SCH_ITEM* schItem = dynamic_cast<SCH_ITEM*>( item ) )
|
||||||
|
schItem->SetStoredPos( schItem->GetPosition() );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set up the starting position and move/drag offset
|
// Set up the starting position and move/drag offset
|
||||||
|
|
Loading…
Reference in New Issue