Undo : setting cursor when adding a new object.