+ fixes #0001790: Crash on undo/redo with a selection