Browse Source

Align cursor to the grid when dragging multiple items (GAL).

pull/6/head
Maciej Suminski 10 years ago
parent
commit
6983f90b9f
  1. 4
      pcbnew/tools/edit_tool.cpp

4
pcbnew/tools/edit_tool.cpp

@ -232,6 +232,10 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent )
m_cursor = grid.BestDragOrigin( originalCursorPos, item );
grid.SetAuxAxes( true, m_cursor );
}
else
{
m_cursor = grid.Align( m_cursor );
}
controls->ForceCursorPosition( true, m_cursor );
controls->WarpCursor( m_cursor, true );

Loading…
Cancel
Save