summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbanames.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba/vbanames.cxx')
-rw-r--r--sc/source/ui/vba/vbanames.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbanames.cxx b/sc/source/ui/vba/vbanames.cxx
index 4f2f774b1172..254b7cd5ec36 100644
--- a/sc/source/ui/vba/vbanames.cxx
+++ b/sc/source/ui/vba/vbanames.cxx
@@ -74,7 +74,7 @@ ScVbaNames::~ScVbaNames()
ScDocument *
ScVbaNames::getScDocument()
{
- uno::Reference< frame::XModel > xModel( getModel() , uno::UNO_QUERY_THROW );
+ uno::Reference< frame::XModel > xModel( getModel() , uno::UNO_SET_THROW );
ScTabViewShell * pTabViewShell = excel::getBestViewShell( xModel );
if ( !pTabViewShell )
throw uno::RuntimeException( "No ViewShell available" );