diff options
Diffstat (limited to 'src/UndoHistory.cxx')
-rw-r--r-- | src/UndoHistory.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/UndoHistory.cxx b/src/UndoHistory.cxx index c0d7ba5f2..29a80c6d1 100644 --- a/src/UndoHistory.cxx +++ b/src/UndoHistory.cxx @@ -354,6 +354,14 @@ int UndoHistory::UndoSequenceDepth() const noexcept { return undoSequenceDepth; } +bool UndoHistory::AfterUndoSequenceStart() const noexcept { + if (currentAction == 0) { + return false; + } + // Count back to last sequence start? + return !actions.AtStart(currentAction-1); +} + void UndoHistory::DropUndoSequence() noexcept { undoSequenceDepth = 0; } |