diff options
author | Noel Power <npower@openoffice.org> | 2009-10-07 14:57:37 +0000 |
---|---|---|
committer | Noel Power <npower@openoffice.org> | 2009-10-07 14:57:37 +0000 |
commit | 84d1ba201c11ae58874953ab12df6b5aba20d714 (patch) | |
tree | cd0493a94cdd953eac9aab3ba92a2693678ea191 /sc | |
parent | e202191f2b4fb8dba1288502dd2fade732638019 (diff) |
fix selection issue
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/vba/vbaapplication.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx index 880a691701ff..953a2aaee74e 100644 --- a/sc/source/ui/vba/vbaapplication.cxx +++ b/sc/source/ui/vba/vbaapplication.cxx @@ -152,7 +152,7 @@ ScVbaApplication::getSelection() throw (uno::RuntimeException) { OSL_TRACE("** ScVbaApplication::getSelection() ** "); uno::Reference< frame::XModel > xModel( getCurrentDocument() ); - uno::Reference< lang::XServiceInfo > xServiceInfo( xModel->getCurrentController(), uno::UNO_QUERY_THROW ); + uno::Reference< lang::XServiceInfo > xServiceInfo( xModel->getCurrentSelection(), uno::UNO_QUERY_THROW ); rtl::OUString sImpementaionName = xServiceInfo->getImplementationName(); if( sImpementaionName.equalsIgnoreAsciiCaseAscii("com.sun.star.drawing.SvxShapeCollection") ) { |