Allow undo during a drag.
This commit is contained in:
parent
1f07505b27
commit
d40019210f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue