| 137 | } |
| 138 | |
| 139 | std::shared_ptr<HistoryAction> HistoryStore::getLastAction( HistoryAction::Type type ) const |
| 140 | { |
| 141 | std::shared_ptr<HistoryAction> action; |
| 142 | if ( type == HistoryAction::Type::Undo && firstRedoIndex_ >= 1 && firstRedoIndex_ < stack_.size() + 1 ) |
| 143 | action = stack_[firstRedoIndex_ - 1]; |
| 144 | else if ( type == HistoryAction::Type::Redo && firstRedoIndex_ < stack_.size() ) |
| 145 | action = stack_[firstRedoIndex_]; |
| 146 | return action; |
| 147 | } |
| 148 | |
| 149 | std::string HistoryStore::getLastActionName( HistoryAction::Type type ) const |
| 150 | { |
no test coverage detected