diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-05-04 09:10:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-05-04 15:14:53 +0200 |
commit | b50df5aa72fb1259734794222119c5ad3017ba26 (patch) | |
tree | 7c14c2787e10c3b355e253d54f0892622e12ac53 /svl/source/undo | |
parent | cef0b4c187a669896706799967def4a9aecf2126 (diff) |
Resolves: tdf#134308 if max undo is 0, treat as if no undo
Change-Id: I7eaa71d80718a4350ba6a3d7ff19ce09e1ac3aa3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151354
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svl/source/undo')
-rw-r--r-- | svl/source/undo/undo.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx index 31269438f938..9b90495d593a 100644 --- a/svl/source/undo/undo.cxx +++ b/svl/source/undo/undo.cxx @@ -376,7 +376,6 @@ bool SfxUndoManager::ImplIsUndoEnabled_Lock() const return m_xData->mbUndoEnabled; } - void SfxUndoManager::SetMaxUndoActionCount( size_t nMaxUndoActionCount ) { UndoManagerGuard aGuard( *m_xData ); @@ -411,6 +410,10 @@ void SfxUndoManager::SetMaxUndoActionCount( size_t nMaxUndoActionCount ) ImplCheckEmptyActions(); } +size_t SfxUndoManager::GetMaxUndoActionCount() const +{ + return m_xData->pActUndoArray->nMaxUndoActions; +} void SfxUndoManager::ImplClearCurrentLevel_NoNotify( UndoManagerGuard& i_guard ) { |