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 break; // Finish
} }
else if( evt->Action() == TA_UNDO_REDO_PRE ) else if( evt->IsAction( &ACTIONS::undo ) )
{ {
unselect = true; restore_state = true; // Perform undo locally
break; break; // Finish
} }
// Dispatch TOOL_ACTIONs // Dispatch TOOL_ACTIONs