Kaydet (Commit) 358f5280 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix coverity#1224993 w/o breaking JunitTest_framework_unoapi

Change-Id: Iefa1d79c52c4f951a7a66be98de3c9752bf89daf
üst 52028d46
...@@ -58,8 +58,10 @@ ...@@ -58,8 +58,10 @@
#include <crstate.hxx> #include <crstate.hxx>
#include <comphelper/extract.hxx> #include <comphelper/extract.hxx>
#include <comphelper/makesequence.hxx> #include <comphelper/makesequence.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/supportsservice.hxx> #include <cppuhelper/supportsservice.hxx>
#include <svx/scene3d.hxx> #include <svx/scene3d.hxx>
#include <com/sun/star/beans/IllegalTypeException.hpp>
#include <com/sun/star/drawing/XDrawPageSupplier.hpp> #include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <fmtwrapinfluenceonobjpos.hxx> #include <fmtwrapinfluenceonobjpos.hxx>
#include <com/sun/star/text/TextContentAnchorType.hpp> #include <com/sun/star/text/TextContentAnchorType.hpp>
...@@ -1462,7 +1464,14 @@ void SwXShape::setPropertyValue(const OUString& rPropertyName, const uno::Any& a ...@@ -1462,7 +1464,14 @@ void SwXShape::setPropertyValue(const OUString& rPropertyName, const uno::Any& a
if (pFmt) if (pFmt)
{ {
// We have a pFmt (but no pEntry): try to sync TextBox property. // We have a pFmt (but no pEntry): try to sync TextBox property.
SwTextBoxHelper::syncProperty(pFmt, rPropertyName, aValue); 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);
}
} }
// #i31698# - restore object position, if caption point is set. // #i31698# - restore object position, if caption point is set.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment