Loading include/tool/tool_event.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -207,7 +207,7 @@ public: ///> Returns information about difference between current mouse cursor position and the place ///> Returns information about difference between current mouse cursor position and the place ///> where dragging has started. ///> where dragging has started. const VECTOR2D Delta() const const VECTOR2D& Delta() const { { assert( m_category == TC_MOUSE ); // this should be used only with mouse events assert( m_category == TC_MOUSE ); // this should be used only with mouse events return m_mouseDelta; return m_mouseDelta; Loading pcbnew/router/router_tool.cpp +3 −0 Original line number Original line Diff line number Diff line Loading @@ -26,6 +26,7 @@ #include "class_board.h" #include "class_board.h" #include <wxPcbStruct.h> #include <wxPcbStruct.h> #include <id.h> #include <view/view_controls.h> #include <view/view_controls.h> #include <pcbcommon.h> #include <pcbcommon.h> #include <pcb_painter.h> #include <pcb_painter.h> Loading Loading @@ -464,6 +465,8 @@ int ROUTER_TOOL::Main( TOOL_EVENT& aEvent ) ctls->ShowCursor( false ); ctls->ShowCursor( false ); ctls->ForceCursorPosition( false ); ctls->ForceCursorPosition( false ); getEditFrame<PCB_EDIT_FRAME>()->SetToolID( ID_NO_TOOL_SELECTED, wxCURSOR_DEFAULT, wxEmptyString ); return 0; return 0; } } Loading
include/tool/tool_event.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -207,7 +207,7 @@ public: ///> Returns information about difference between current mouse cursor position and the place ///> Returns information about difference between current mouse cursor position and the place ///> where dragging has started. ///> where dragging has started. const VECTOR2D Delta() const const VECTOR2D& Delta() const { { assert( m_category == TC_MOUSE ); // this should be used only with mouse events assert( m_category == TC_MOUSE ); // this should be used only with mouse events return m_mouseDelta; return m_mouseDelta; Loading
pcbnew/router/router_tool.cpp +3 −0 Original line number Original line Diff line number Diff line Loading @@ -26,6 +26,7 @@ #include "class_board.h" #include "class_board.h" #include <wxPcbStruct.h> #include <wxPcbStruct.h> #include <id.h> #include <view/view_controls.h> #include <view/view_controls.h> #include <pcbcommon.h> #include <pcbcommon.h> #include <pcb_painter.h> #include <pcb_painter.h> Loading Loading @@ -464,6 +465,8 @@ int ROUTER_TOOL::Main( TOOL_EVENT& aEvent ) ctls->ShowCursor( false ); ctls->ShowCursor( false ); ctls->ForceCursorPosition( false ); ctls->ForceCursorPosition( false ); getEditFrame<PCB_EDIT_FRAME>()->SetToolID( ID_NO_TOOL_SELECTED, wxCURSOR_DEFAULT, wxEmptyString ); return 0; return 0; } }