- Open a page with some content (a few paragraphs)
- Select all and delete
- Insert a math node
- Press undo
You'll get an exception as selectionBefore in the undo stack is still the range of the whole original document, but your document should be empty.
Version: unspecified
Severity: normal