Fixed rollback of traces movement.

This commit is contained in:
Maciej Suminski 2013-09-12 10:54:11 +02:00
parent 8f5e6badc4
commit bfdad27893
2 changed files with 3 additions and 2 deletions

View File

@ -61,7 +61,7 @@ void MOVE_TOOL::Reset()
} }
// the tool launches upon reception of activate ("pcbnew.InteractiveMove") // 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() ) );
} }

View File

@ -89,7 +89,8 @@ private:
void RestorePosition() 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() void RestoreVisibility()