diff options
Diffstat (limited to 'sc/source/ui/vba/vbasheetobjects.cxx')
| -rw-r--r-- | sc/source/ui/vba/vbasheetobjects.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/vba/vbasheetobjects.cxx b/sc/source/ui/vba/vbasheetobjects.cxx index ebd854f305ad..10eccf035b24 100644 --- a/sc/source/ui/vba/vbasheetobjects.cxx +++ b/sc/source/ui/vba/vbasheetobjects.cxx @@ -220,8 +220,8 @@ sal_Int32 ScVbaObjectContainer::insertShape( const uno::Reference< drawing::XSha uno::Any ScVbaObjectContainer::createCollectionObject( const uno::Any& rSource ) { uno::Reference< drawing::XShape > xShape( rSource, uno::UNO_QUERY_THROW ); - uno::Reference< excel::XSheetObject > xSheetObject( implCreateVbaObject( xShape ) ); - return uno::Any( xSheetObject ); + rtl::Reference< ScVbaSheetObjectBase > xSheetObject( implCreateVbaObject( xShape ) ); + return uno::Any( uno::Reference< excel::XSheetObject >(xSheetObject) ); } uno::Any ScVbaObjectContainer::getItemByStringIndex( const OUString& rIndex ) |
