diff options
Diffstat (limited to 'sw/source/ui/vba/vbapanes.cxx')
-rw-r--r-- | sw/source/ui/vba/vbapanes.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/vba/vbapanes.cxx b/sw/source/ui/vba/vbapanes.cxx index 338fe99161f4..6fdf39d2d64f 100644 --- a/sw/source/ui/vba/vbapanes.cxx +++ b/sw/source/ui/vba/vbapanes.cxx @@ -43,7 +43,7 @@ public: virtual uno::Any SAL_CALL getByIndex( sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException, std::exception) SAL_OVERRIDE { if( Index != 1 ) - throw container::NoSuchElementException(); + throw lang::IndexOutOfBoundsException(); return uno::makeAny( uno::Reference< word::XPane >( new SwVbaPane( mxParent, mxContext, mxModel ) ) ); } virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE |