diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-11-19 18:16:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-19 18:18:06 +0100 |
commit | fced31697bcc2a2a4da34d804582002de0320302 (patch) | |
tree | a8db100cf5c2202214db2d1ba79022e900f652fb /sw/source/core/unocore/unodraw.cxx | |
parent | 49329e371c0a5f1fe7e605841109cab02e053b1a (diff) |
comphelper::SequenceAsHashMap: throw IllegalArgumentException
...instead of IllegalTypeException (where the latter is not a RuntimeException).
Fixes cid#707218, cid#1224993, etc., and reverts previous fix
358f5280e0f6afb968edc295d8f1dce55f05e18f "Fix coverity#1224993 w/o breaking
JunitTest_framework_unoapi."
Change-Id: I13ce153e1513749fb0be2ee8e560cec86a30c5ba
Diffstat (limited to 'sw/source/core/unocore/unodraw.cxx')
-rw-r--r-- | sw/source/core/unocore/unodraw.cxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx index 0102e7916b00..d8b463274a77 100644 --- a/sw/source/core/unocore/unodraw.cxx +++ b/sw/source/core/unocore/unodraw.cxx @@ -58,10 +58,8 @@ #include <crstate.hxx> #include <comphelper/extract.hxx> #include <comphelper/makesequence.hxx> -#include <cppuhelper/exc_hlp.hxx> #include <cppuhelper/supportsservice.hxx> #include <svx/scene3d.hxx> -#include <com/sun/star/beans/IllegalTypeException.hpp> #include <com/sun/star/drawing/XDrawPageSupplier.hpp> #include <fmtwrapinfluenceonobjpos.hxx> #include <com/sun/star/text/TextContentAnchorType.hpp> @@ -1483,14 +1481,7 @@ void SwXShape::setPropertyValue(const OUString& rPropertyName, const uno::Any& a if (pFmt) { // We have a pFmt (but no pEntry): try to sync TextBox property. - try { - SwTextBoxHelper::syncProperty(pFmt, rPropertyName, aValue); - } catch (css::beans::IllegalTypeException & e) { - css::uno::Any a(cppu::getCaughtException()); - throw css::lang::WrappedTargetException( - "wrapped IllegalTypeException " + e.Message, - css::uno::Reference<css::uno::XInterface>(), a); - } + SwTextBoxHelper::syncProperty(pFmt, rPropertyName, aValue); } // #i31698# - restore object position, if caption point is set. |