Browse Source

EDIT_TOOL: restore cursor position on exit

Fixes: lp:1671564
* https://bugs.launchpad.net/kicad/+bug/1671564
pull/3/merge
Tomasz Włostowski 9 years ago
parent
commit
2f730cad81
  1. 5
      pcbnew/tools/edit_tool.cpp

5
pcbnew/tools/edit_tool.cpp

@ -421,6 +421,11 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent )
}
} while( ( evt = Wait() ) ); //Should be assignment not equality test
controls->ForceCursorPosition( false );
controls->ShowCursor( false );
controls->SetSnapping( false );
controls->SetAutoPan( false );
m_dragging = false;
m_offset.x = 0;
m_offset.y = 0;

Loading…
Cancel
Save