Skip to content

Commit

Permalink
Update undoredo.h
Browse files Browse the repository at this point in the history
Fix undo block reset (on Windows).

Ref: #209
  • Loading branch information
rodlie committed Jul 14, 2024
1 parent 5c7a23b commit 8df58d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/undoredo.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class CORE_EXPORT UndoRedoStack : public SelfRef {
void reset() {
if(mStack) {
mStack->mUndoRedoBlocked--;
if (mStack->mUndoRedoBlocked < 0) { mStack->mUndoRedoBlocked = 0; }
mStack = nullptr;
}
}
Expand Down

0 comments on commit 8df58d7

Please sign in to comment.