filter/source/msfilter/msvbahelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 8253b8d6f1efb7fc3e2928d543c21a79c2cdc13f Author: Justin Luth <justin.l...@collabora.com> AuthorDate: Thu Sep 29 15:27:47 2022 -0400 Commit: Justin Luth <jl...@mail.com> CommitDate: Fri Sep 30 00:10:41 2022 +0200 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 <jl...@mail.com> 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 );