diff options
Diffstat (limited to 'sc/source/ui/docshell/docsh5.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh5.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx index b965d5059cae..53fda62dafb6 100644 --- a/sc/source/ui/docshell/docsh5.cxx +++ b/sc/source/ui/docshell/docsh5.cxx @@ -949,6 +949,8 @@ sal_Bool ScDocShell::MoveTable( SCTAB nSrcTab, SCTAB nDestTab, sal_Bool bCopy, s nTabToUse = aDocument.GetMaxTableNumber() - 1; rtl::OUString sCodeName; rtl::OUString sSource; + try + { Reference< XNameContainer > xLib; if( xLibContainer.is() ) { @@ -959,6 +961,10 @@ sal_Bool ScDocShell::MoveTable( SCTAB nSrcTab, SCTAB nDestTab, sal_Bool bCopy, s { xLib->getByName( sSrcCodeName ) >>= sSource; } + } + catch ( const com::sun::star::uno::Exception& ) + { + } VBA_InsertModule( aDocument, nTabToUse, sCodeName, sSource ); } } |