summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbabookmark.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbabookmark.cxx')
-rw-r--r--sw/source/ui/vba/vbabookmark.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbabookmark.cxx b/sw/source/ui/vba/vbabookmark.cxx
index b3334ea57e7d..506feea2e46a 100644
--- a/sw/source/ui/vba/vbabookmark.cxx
+++ b/sw/source/ui/vba/vbabookmark.cxx
@@ -77,9 +77,9 @@ void SAL_CALL SwVbaBookmark::setName( const OUString& _name )
uno::Any SAL_CALL SwVbaBookmark::Range()
{
- uno::Reference< text::XTextContent > xTextContent( mxBookmark, uno::UNO_QUERY_THROW );
+ uno::Reference< text::XTextContent > xTextContent( mxBookmark, uno::UNO_SET_THROW );
uno::Reference< text::XTextDocument > xTextDocument( mxModel, uno::UNO_QUERY_THROW );
- uno::Reference< text::XTextRange > xTextRange( xTextContent->getAnchor(), uno::UNO_QUERY_THROW );
+ uno::Reference< text::XTextRange > xTextRange( xTextContent->getAnchor(), uno::UNO_SET_THROW );
return uno::makeAny( uno::Reference< word::XRange>( new SwVbaRange( this, mxContext, xTextDocument, xTextRange->getStart(), xTextRange->getEnd(), xTextRange->getText() ) ) );
}