[ooo-build-commit] patches/vba
Noel Power
noelp at kemper.freedesktop.org
Tue Jun 23 12:17:17 PDT 2009
patches/vba/xlsx-separate-lib-vba-fallback-tweak.diff | 15 +++++++++++++++
1 file changed, 15 insertions(+)
New commits:
commit 5c9037336da34d9e1b7a583aeba43d80be58b231
Author: Noel Power <npower at linux-h0uc.site>
Date: Tue Jun 23 20:16:52 2009 +0100
missing patch
* patches/vba/xlsx-separate-lib-vba-fallback-tweak.diff:
diff --git a/patches/vba/xlsx-separate-lib-vba-fallback-tweak.diff b/patches/vba/xlsx-separate-lib-vba-fallback-tweak.diff
new file mode 100644
index 0000000..f6409e5
--- /dev/null
+++ b/patches/vba/xlsx-separate-lib-vba-fallback-tweak.diff
@@ -0,0 +1,15 @@
+diff --git sc/source/filter/xlsx/xlsx-excimp8.cxx sc/source/filter/xlsx/xlsx-excimp8.cxx
+index 2995571..d03666e 100644
+--- sc/source/filter/xlsx/xlsx-excimp8.cxx
++++ sc/source/filter/xlsx/xlsx-excimp8.cxx
+@@ -277,7 +277,9 @@ void ImportExcel8::ReadBasic( void )
+ if( bLoadCode || bLoadStrg )
+ {
+ uno::Any aGlobs;
+- aGlobs <<= ::comphelper::getProcessServiceFactory()->createInstance( ::rtl::OUString::createFromAscii( "ooo.vba.excel.Globals") );
++ uno::Sequence< uno::Any > aArgs(1);
++ aArgs[ 0 ] <<= pShell->GetModel();
++ aGlobs <<= ::comphelper::getProcessServiceFactory()->createInstanceWithArguments( ::rtl::OUString::createFromAscii( "ooo.vba.excel.Globals"), aArgs );
+ pShell->GetBasicManager()->SetGlobalUNOConstant( "VBAGlobals", aGlobs );
+ SvxImportMSVBasic aBasicImport( *pShell, *xRootStrg, bLoadCode, bLoadStrg );
+ bool bAsComment = !bLoadExecutable || !aGlobs.hasValue();
More information about the ooo-build-commit
mailing list