| 134 | } |
| 135 | |
| 136 | Cmd* DocumentUndo::lastExecutedCmd() const |
| 137 | { |
| 138 | const undo::UndoState* state = m_undoHistory.currentState(); |
| 139 | if (state) |
| 140 | return static_cast<Cmd*>(state->cmd()); |
| 141 | else |
| 142 | return NULL; |
| 143 | } |
| 144 | |
| 145 | void DocumentUndo::moveToState(const undo::UndoState* state) |
| 146 | { |
no test coverage detected