Fixed assert on double 'Move' command invocation (GAL).

This commit is contained in:
Maciej Suminski 2015-07-15 14:08:52 +02:00
parent 59af7a96f8
commit 6a6ea35335
1 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent )
{
BOARD_ITEM* item = selection.Item<BOARD_ITEM>( 0 );
if( m_dragging )
if( m_dragging && evt->Category() == TC_MOUSE )
{
m_cursor = grid.BestSnapAnchor( evt->Position(), item );
getViewControls()->ForceCursorPosition( true, m_cursor );
@ -198,7 +198,7 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent )
updateRatsnest( true );
}
else // Prepare to start dragging
else if( !m_dragging ) // Prepare to start dragging
{
if( !invokeInlineRouter() )
{