summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-06-19 21:32:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-06-20 15:17:25 +0200
commit6c7075ee60e799db8b8f94a6d0317ad9bcb75b5d (patch)
treebfbf86f29b855220b8d54cf5b514202641ff0191 /sw
parent92741976101e8224291cf9af492209ff5412ca7b (diff)
cid#1485150 suppress Uncaught exception
Change-Id: Ic1b2a44afd15e0720edd48f3502dd2799795551a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117508 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/undo/undobj.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/undo/undobj.cxx b/sw/source/core/undo/undobj.cxx
index 5c2405f32966..02d2a5327c38 100644
--- a/sw/source/core/undo/undobj.cxx
+++ b/sw/source/core/undo/undobj.cxx
@@ -42,6 +42,7 @@
#include <docsh.hxx>
#include <view.hxx>
#include <frameformats.hxx>
+#include <o3tl/deleter.hxx>
#include <sal/log.hxx>
// This class saves the Pam as integers and can recompose those into a PaM
@@ -1208,7 +1209,8 @@ SwUndoSaveSection::~SwUndoSaveSection()
{
// SaveSection saves the content in the PostIt section.
SwNodes& rUNds = m_pMovedStart->GetNode().GetNodes();
- rUNds.Delete( *m_pMovedStart, m_nMoveLen );
+ // cid#1486004 Uncaught exception
+ suppress_fun_call_w_exception(rUNds.Delete(*m_pMovedStart, m_nMoveLen));
m_pMovedStart.reset();
}