[ooo-build-commit] .: Branch 'ooo-build-3-2' - patches/dev300 patches/vba
Noel Power
noelp at kemper.freedesktop.org
Mon Apr 19 13:11:00 PDT 2010
patches/dev300/apply | 2 ++
patches/vba/vba-fixerror-nonvba.diff | 13 +++++++++++++
2 files changed, 15 insertions(+)
New commits:
commit 5d6bc4ef69ea61d967e96af23e521ec674f5c3f8
Author: Noel Power <noel.power at novell.com>
Date: Mon Apr 19 21:11:01 2010 +0100
fix resolving of Err function/object in vba/non-vba mode n#597884
* patches/dev300/apply:
* patches/vba/vba-fixerror-nonvba.diff:
diff --git a/patches/dev300/apply b/patches/dev300/apply
index 4755292..e8abb5a 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -1727,6 +1727,8 @@ vba-fix-scripting-parallelbuild.diff
# fix strange problem when strange (empty) TBC records can
# cause document load to ... loop ( and potential crash )
vba-ctb-fix-looponload.diff, n#589794, n#590359
+# fix resolving of Err function/object in vba/non-vba mode
+vba-fixerror-nonvba.diff, n#597884
[VBAUntested]
SectionOwner => noelpwer
# doesn't work
diff --git a/patches/vba/vba-fixerror-nonvba.diff b/patches/vba/vba-fixerror-nonvba.diff
new file mode 100644
index 0000000..b57b186
--- /dev/null
+++ b/patches/vba/vba-fixerror-nonvba.diff
@@ -0,0 +1,13 @@
+diff --git basic/source/runtime/stdobj.cxx basic/source/runtime/stdobj.cxx
+index 4c8c807..9341037 100644
+--- basic/source/runtime/stdobj.cxx
++++ basic/source/runtime/stdobj.cxx
+@@ -773,7 +773,7 @@ SbxVariable* SbiStdObject::Find( const String& rName, SbxClassType t )
+ // #TODO #FIXME hack for substituting ooo-basic Err with vba-ish
+ // ErrObject object
+ static String sErr( RTL_CONSTASCII_USTRINGPARAM("Err") );
+- if ( rName.EqualsIgnoreCaseAscii( sErr ) )
++ if ( SbiRuntime::isVBAEnabled() && rName.EqualsIgnoreCaseAscii( sErr ) )
+ return SbxErrObject::getErrObject();
+ // Bereits eingetragen?
+ SbxVariable* pVar = SbxObject::Find( rName, t );
More information about the ooo-build-commit
mailing list