[[ Bug 13568 ]] Make sure that pressing undo (cmd+z) twice when using pa...

...int tools, the second undo undoes the first one.