diff options
author | Justin Luth <justin.luth@collabora.com> | 2022-09-29 15:27:47 -0400 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2022-09-30 00:10:41 +0200 |
commit | 8253b8d6f1efb7fc3e2928d543c21a79c2cdc13f (patch) | |
tree | cd7ac5f639a6cd78f01d6a57be87ac50d2a75003 /filter | |
parent | 7e19bde57c825f361304e9bce1d3929995ee7ddd (diff) |
tdf#148806 docm: fix vba macro events without ScriptCodes
Prior to this, none of the DOCM ActiveX macros were called.
Now, just like magic, it all works.
Already broken at commit c5fc57de562850a7d2f708e3936296d24677012d
Author: npower Developer on Tue Mar 2 15:04:15 2010 +0000
npower14miscfixes: #i109706# move back msvbahelper to the filter module
Change-Id: I25b25850b12609e5e00dd4bd5189a734abcbddd6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140750
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/msvbahelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/msfilter/msvbahelper.cxx b/filter/source/msfilter/msvbahelper.cxx index f43b121ecb67..95144adb6094 100644 --- a/filter/source/msfilter/msvbahelper.cxx +++ b/filter/source/msfilter/msvbahelper.cxx @@ -243,7 +243,7 @@ static void parseMacro( const OUString& sMacro, OUString& sContainer, OUString& { sProcedure = sMacro.copy( nMacroDot + 1 ); - sal_Int32 nContainerDot = sMacro.lastIndexOf( '.', nMacroDot - 1 ); + const sal_Int32 nContainerDot = sMacro.lastIndexOf('.', nMacroDot); if ( nContainerDot != -1 ) { sModule = sMacro.copy( nContainerDot + 1, nMacroDot - nContainerDot - 1 ); |