From 0f2981329c6b2cf409a506ad10f1485a8fc7d686 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 26 May 2017 11:36:31 +0200 Subject: sdext: coverity#1409900 Uncaught exception Change-Id: I45e277440718b9d173f164eaaa3112f4c474aa3a --- sdext/source/presenter/PresenterTextView.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sdext') diff --git a/sdext/source/presenter/PresenterTextView.cxx b/sdext/source/presenter/PresenterTextView.cxx index ca48c6f15f4f..39ad5591c4b9 100644 --- a/sdext/source/presenter/PresenterTextView.cxx +++ b/sdext/source/presenter/PresenterTextView.cxx @@ -1086,7 +1086,14 @@ PresenterTextCaret::PresenterTextCaret ( PresenterTextCaret::~PresenterTextCaret() { - HideCaret(); + try + { + HideCaret(); + } + catch (uno::Exception const&) + { + SAL_WARN("sdext.presenter", "unexpected exception in ~PresenterTextCaret"); + } } void PresenterTextCaret::ShowCaret() -- cgit