Dia supports Undo and Redo on most operations. To undo an operation, press Ctrl+Z or select Edit → Undo from the diagram menu bar. To redo an operation, press Ctrl+Shift+Z or select Edit → Redo from the diagram menu bar.