summaryrefslogtreecommitdiff
path: root/patches/vba/oox-insert-module-bug.diff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/vba/oox-insert-module-bug.diff')
-rw-r--r--patches/vba/oox-insert-module-bug.diff17
1 files changed, 0 insertions, 17 deletions
diff --git a/patches/vba/oox-insert-module-bug.diff b/patches/vba/oox-insert-module-bug.diff
deleted file mode 100644
index 71b5a896e..000000000
--- a/patches/vba/oox-insert-module-bug.diff
+++ /dev/null
@@ -1,17 +0,0 @@
-diff --git oox/source/ole/vbamodule.cxx oox/source/ole/vbamodule.cxx
-index 2ce7c3e..c49ac1e 100755
---- oox/source/ole/vbamodule.cxx
-+++ oox/source/ole/vbamodule.cxx
-@@ -332,7 +332,11 @@ void VbaModule::importSourceCode( StorageBase& rVbaStrg,
- // insert the module into the passed Basic library
- try
- {
-- rxBasicLib->insertByName( maName, Any( aSourceCode.makeStringAndClear() ) );
-+ // sheet modules are 'pre-created'
-+ if ( rxBasicLib->hasByName( maName ) )
-+ rxBasicLib->replaceByName( maName, Any( aSourceCode.makeStringAndClear() ) );
-+ else
-+ rxBasicLib->insertByName( maName, Any( aSourceCode.makeStringAndClear() ) );
- }
- catch( Exception& )
- {