summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vbahelper/vbahelper.hxx4
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx30
2 files changed, 10 insertions, 24 deletions
diff --git a/include/vbahelper/vbahelper.hxx b/include/vbahelper/vbahelper.hxx
index 3e9fa2108129..8e56341fac98 100644
--- a/include/vbahelper/vbahelper.hxx
+++ b/include/vbahelper/vbahelper.hxx
@@ -162,9 +162,9 @@ public:
throw (css::script::BasicErrorException, css::uno::RuntimeException);
double getHeight() const;
- void setHeight(double _fheight) throw ( css::script::BasicErrorException );
+ void setHeight(double _fheight);
double getWidth() const;
- void setWidth(double _fWidth) throw ( css::script::BasicErrorException );
+ void setWidth(double _fWidth);
double getLeft() const;
void setLeft(double _fLeft);
double getTop() const;
diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx
index 738c503e3ec5..cdee33b64b28 100644
--- a/vbahelper/source/vbahelper/vbahelper.cxx
+++ b/vbahelper/source/vbahelper/vbahelper.cxx
@@ -1015,18 +1015,11 @@ double ShapeHelper::getHeight() const
return Millimeter::getInPoints(xShape->getSize().Height);
}
-void ShapeHelper::setHeight(double _fheight) throw ( css::script::BasicErrorException )
+void ShapeHelper::setHeight(double _fheight)
{
- try
- {
- css::awt::Size aSize = xShape->getSize();
- aSize.Height = Millimeter::getInHundredthsOfOneMillimeter(_fheight);
- xShape->setSize(aSize);
- }
- catch (const css::uno::Exception&)
- {
- throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), SbERR_METHOD_FAILED, OUString() );
- }
+ css::awt::Size aSize = xShape->getSize();
+ aSize.Height = Millimeter::getInHundredthsOfOneMillimeter(_fheight);
+ xShape->setSize(aSize);
}
double ShapeHelper::getWidth() const
@@ -1034,18 +1027,11 @@ double ShapeHelper::getWidth() const
return Millimeter::getInPoints(xShape->getSize().Width);
}
-void ShapeHelper::setWidth(double _fWidth) throw ( css::script::BasicErrorException )
+void ShapeHelper::setWidth(double _fWidth)
{
- try
- {
- css::awt::Size aSize = xShape->getSize();
- aSize.Width = Millimeter::getInHundredthsOfOneMillimeter(_fWidth);
- xShape->setSize(aSize);
- }
- catch (const css::uno::Exception&)
- {
- throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), SbERR_METHOD_FAILED, OUString() );
- }
+ css::awt::Size aSize = xShape->getSize();
+ aSize.Width = Millimeter::getInHundredthsOfOneMillimeter(_fWidth);
+ xShape->setSize(aSize);
}
double ShapeHelper::getLeft() const