aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/UndoHistory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/UndoHistory.h')
-rw-r--r--src/UndoHistory.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/UndoHistory.h b/src/UndoHistory.h
index 98df93465..349ca2665 100644
--- a/src/UndoHistory.h
+++ b/src/UndoHistory.h
@@ -39,11 +39,11 @@ public:
*/
class UndoHistory {
std::vector<UndoAction> actions;
- int maxAction;
- int currentAction;
- int undoSequenceDepth;
- int savePoint;
- int tentativePoint;
+ int maxAction = 0;
+ int currentAction = 0;
+ int undoSequenceDepth = 0;
+ int savePoint = 0;
+ int tentativePoint = -1;
std::optional<int> detach;
std::unique_ptr<ScrapStack> scraps;