diff options
Diffstat (limited to 'basctl/source')
-rw-r--r-- | basctl/source/basicide/scriptdocument.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/basctl/source/basicide/scriptdocument.cxx b/basctl/source/basicide/scriptdocument.cxx index 733cebdbb679..a7b16505d1a5 100644 --- a/basctl/source/basicide/scriptdocument.cxx +++ b/basctl/source/basicide/scriptdocument.cxx @@ -527,6 +527,9 @@ namespace basctl if ( xLib.is() ) { xLib->removeByName( _rModuleName ); + Reference< XVBAModuleInfo > xVBAModuleInfo(xLib, UNO_QUERY); + if(xVBAModuleInfo.is() && xVBAModuleInfo->hasModuleInfo(_rModuleName)) + xVBAModuleInfo->removeModuleInfo(_rModuleName); return true; } } |