Commit bfdad278 authored by Maciej Suminski's avatar Maciej Suminski

Fixed rollback of traces movement.

parent 8f5e6bad
...@@ -61,7 +61,7 @@ void MOVE_TOOL::Reset() ...@@ -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() ) );
} }
......
...@@ -89,7 +89,8 @@ private: ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment