Changeset 780bfa for src/Actions/ActionHistory.cpp
- Timestamp:
- Aug 13, 2025, 9:46:30 PM (2 months ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- 463bfb
- Parents:
- bcc29ca
- git-author:
- Frederik Heber <frederik.heber@…> (08/13/25 08:41:09)
- git-committer:
- Frederik Heber <frederik.heber@…> (08/13/25 21:46:30)
- File:
-
- 1 edited
-
src/Actions/ActionHistory.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ActionHistory.cpp
rbcc29ca r780bfa 100 100 void ActionHistory::setMark() { 101 101 HistoryElement * const mark = &(history.back()); 102 ASSERT( mark != NULL, 103 "ActionHistory::setMark() - must not push NULL as element"); 102 if (mark == NULL) { 103 ELOG(2, "setMark - must not push NULL as element"); 104 return; 105 } 104 106 marked.push(mark); 105 107 } 106 108 107 109 void ActionHistory::unsetMark() { 108 marked.pop(); 110 if (!marked.empty()) { 111 marked.pop(); 112 } else { 113 ELOG(2, "unsetMark - stack is already empty."); 114 } 109 115 } 110 116 111 117 void ActionHistory::undoTillMark() { 112 118 if (marked.empty()) { 113 undoLast();119 ELOG(2, "There is no undo mark, not undoing anything."); 114 120 } else { 115 121 const HistoryElement * const mark = marked.top();
Note:
See TracChangeset
for help on using the changeset viewer.
