diff options
author | Christian Lippka <cl@openoffice.org> | 2010-09-17 13:52:02 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-12-04 07:17:07 +0000 |
commit | 95d1169195a0e303e4a882c7e37faab0b6bc94a6 (patch) | |
tree | 9d507a6672d070603eb1bb1d8ebe3c61586c8b37 | |
parent | f528f48a55e7acffaba70f719afa07b37863346f (diff) |
mib19: #163566# do not throw assertion if container is not available
-rw-r--r-- | sc/source/ui/vba/vbaworksheet.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbaworksheet.cxx b/sc/source/ui/vba/vbaworksheet.cxx index d5fe171afde2..56fa49333d6a 100644 --- a/sc/source/ui/vba/vbaworksheet.cxx +++ b/sc/source/ui/vba/vbaworksheet.cxx @@ -990,7 +990,8 @@ ScVbaWorksheet::getFormControls() // get the www-standard container ( maybe we should access the // 'www-standard' by name rather than index, this seems an // implementation detail - xFormControls.set( xIndexAccess->getByIndex(0), uno::UNO_QUERY_THROW ); + if( xIndexAccess->hasElements() ) + xFormControls.set( xIndexAccess->getByIndex(0), uno::UNO_QUERY ); } catch( uno::Exception& ) |