diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-10 10:15:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-10 11:21:07 +0000 |
commit | db25691185288a13daf4bf392ae8a641e9ef7050 (patch) | |
tree | 5a1b7d08b9478f7b103d7e6160b9a724ad152c05 /sw | |
parent | 4adf4379aa908b987a5e1138df91dbcf80ed7572 (diff) |
coverity#1130445 Uncaught exception
Change-Id: I5ccf654d60f277c43c19032867ce0a940738c73a
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unotext.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx index 6ce00e9c936a..23b91b304085 100644 --- a/sw/source/core/unocore/unotext.cxx +++ b/sw/source/core/unocore/unotext.cxx @@ -1267,7 +1267,7 @@ SwXText::Impl::finishOrAppendParagraph( const bool bFinish, const uno::Sequence< beans::PropertyValue > & rProperties, const uno::Reference< text::XTextRange >& xInsertPosition) -throw (lang::IllegalArgumentException, uno::RuntimeException) + throw (lang::IllegalArgumentException, uno::RuntimeException) { if (!m_bIsValid) { @@ -1327,6 +1327,11 @@ throw (lang::IllegalArgumentException, uno::RuntimeException) sMessage = rRuntime.Message; bRuntimeException = true; } + catch (const beans::UnknownPropertyException& rEx) + { + sMessage = rEx.Message; + bRuntimeException = true; + } m_pDoc->GetIDocumentUndoRedo().EndUndo(UNDO_END, NULL); if (bIllegalException || bRuntimeException) |