summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbaaxes.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba/vbaaxes.cxx')
-rw-r--r--sc/source/ui/vba/vbaaxes.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/vba/vbaaxes.cxx b/sc/source/ui/vba/vbaaxes.cxx
index 9d3624925b31..ca76ea4ab5e0 100644
--- a/sc/source/ui/vba/vbaaxes.cxx
+++ b/sc/source/ui/vba/vbaaxes.cxx
@@ -69,11 +69,11 @@ ScVbaAxes::createAxis( const uno::Reference< excel::XChart >& xChart, const uno:
if (((nType == xlCategory) || (nType == xlSeriesAxis) || (nType == xlValue)))
{
if ((nAxisGroup != xlPrimary) && (nAxisGroup != xlSecondary))
- throw script::BasicErrorException( OUString(), NULL, SbERR_METHOD_FAILED, OUString());
+ DebugHelper::runtimeexception(SbERR_METHOD_FAILED, OUString());
xAxisPropertySet.set( pChart->getAxisPropertySet(nType, nAxisGroup), uno::UNO_QUERY_THROW );
}
else
- throw script::BasicErrorException( OUString(), NULL, SbERR_METHOD_FAILED, OUString());
+ DebugHelper::runtimeexception(SbERR_METHOD_FAILED, OUString());
uno::Reference< XHelperInterface > xParent( xChart, uno::UNO_QUERY_THROW );
return new ScVbaAxis( xParent, xContext, xAxisPropertySet, nType, nAxisGroup);
}