Commit bfdad278 authored by Maciej Suminski's avatar Maciej Suminski
Browse files

Fixed rollback of traces movement.

parent 8f5e6bad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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() ) );
}


+2 −1
Original line number Diff line number Diff line
@@ -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()