Fixed rollback of traces movement.
This commit is contained in:
parent
8f5e6badc4
commit
bfdad27893
|
@ -61,7 +61,7 @@ void MOVE_TOOL::Reset()
|
|||
}
|
||||
|
||||
// the tool launches upon reception of activate ("pcbnew.InteractiveMove")
|
||||
Go( &MOVE_TOOL::Main, TOOL_EVENT( TC_Command, TA_ActivateTool, GetName() ) ); //"pcbnew.InteractiveMove"));
|
||||
Go( &MOVE_TOOL::Main, TOOL_EVENT( TC_Command, TA_ActivateTool, GetName() ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -89,7 +89,8 @@ private:
|
|||
|
||||
void RestorePosition()
|
||||
{
|
||||
item->SetPosition( wxPoint( position.x, position.y ) );
|
||||
wxPoint curPosition = item->GetPosition();
|
||||
item->Move( wxPoint( position.x - curPosition.x, position.y - curPosition.y ) );
|
||||
}
|
||||
|
||||
void RestoreVisibility()
|
||||
|
|
Loading…
Reference in New Issue