| commit | cb3ae5bb64f30552da1d5ff2bd9e58f8ede85f8b | [log] |
|---|---|---|
| author | Caolán McNamara <caolan.mcnamara@collabora.com> | Tue Oct 10 16:29:16 2023 +0100 |
| committer | Michael Stahl <michael.stahl@allotropia.de> | Wed Oct 11 10:48:48 2023 +0200 |
| tree | 9a643e893c399b2e36f52d315cc786176b44ba38 | |
| parent | 2865050bf82c717ea403bf7635bf4072b1876f41 [diff] |
tdf#154142 null-deref in SfxUndoManager::SetMaxUndoActionCount Change-Id: I09cfbccb5f2ffa009a3e40157c9373b7e10864dc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157772 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx index c1b36c2..cb52e99 100644 --- a/sc/source/ui/view/formatsh.cxx +++ b/sc/source/ui/view/formatsh.cxx
@@ -134,7 +134,7 @@ ScFormatShell::ScFormatShell(ScViewData& rData) : SetPool( &pTabViewShell->GetPool() ); SfxUndoManager* pMgr = rViewData.GetSfxDocShell()->GetUndoManager(); SetUndoManager( pMgr ); if ( !rViewData.GetDocument().IsUndoEnabled() ) if (pMgr && !rViewData.GetDocument().IsUndoEnabled()) { pMgr->SetMaxUndoActionCount( 0 ); }