fix a check for revert changes for undo from edit only and from layer mode.
fix a check for revert changes for undo from edit only and from layer mode.

MapStory/MapLoom,MapStory/MapLoom,MapStory/MapLoom,MapStory/MapLoom