summaryrefslogtreecommitdiff
path: root/reportdesign/source/core/inc/ReportHelperImpl.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'reportdesign/source/core/inc/ReportHelperImpl.hxx')
-rw-r--r--reportdesign/source/core/inc/ReportHelperImpl.hxx18
1 files changed, 16 insertions, 2 deletions
diff --git a/reportdesign/source/core/inc/ReportHelperImpl.hxx b/reportdesign/source/core/inc/ReportHelperImpl.hxx
index 1b5f7d2e78a0..6325f8f79ad1 100644
--- a/reportdesign/source/core/inc/ReportHelperImpl.hxx
+++ b/reportdesign/source/core/inc/ReportHelperImpl.hxx
@@ -46,7 +46,14 @@ void SAL_CALL clazz::setHeight( ::sal_Int32 _height ) throw (uno::RuntimeExcepti
{ \
awt::Size aSize = getSize(); \
aSize.Height = _height; \
- setSize(aSize); \
+ try \
+ { \
+ setSize(aSize); \
+ } \
+ catch (const beans::PropertyVetoException &) \
+ { \
+ throw uno::RuntimeException("Unacceptable height", static_cast<cppu::OWeakObject*>(this)); \
+ } \
} \
::sal_Int32 SAL_CALL clazz::getPositionX() throw (uno::RuntimeException) \
{ \
@@ -76,7 +83,14 @@ void SAL_CALL clazz::setWidth( ::sal_Int32 _width ) throw (uno::RuntimeException
{ \
awt::Size aSize = getSize(); \
aSize.Width = _width; \
- setSize(aSize); \
+ try \
+ { \
+ setSize(aSize); \
+ } \
+ catch (const beans::PropertyVetoException &) \
+ { \
+ throw uno::RuntimeException("Unacceptable width", static_cast<cppu::OWeakObject*>(this)); \
+ } \
} \
uno::Reference< report::XSection > SAL_CALL clazz::getSection() throw (uno::RuntimeException) \
{ \