BUG: Undo does not return change of layout paper size

in V7.

easily reproducable