Allow undo during a drag.

This commit is contained in:
Jeff Young 2019-12-15 21:33:58 +00:00
parent 1f07505b27
commit d40019210f
1 changed files with 3 additions and 3 deletions

View File

@ -441,10 +441,10 @@ int EDIT_TOOL::Move( const TOOL_EVENT& aEvent )
break; // Finish
}
else if( evt->Action() == TA_UNDO_REDO_PRE )
else if( evt->IsAction( &ACTIONS::undo ) )
{
unselect = true;
break;
restore_state = true; // Perform undo locally
break; // Finish
}
// Dispatch TOOL_ACTIONs