filter/source/msfilter/msvbahelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c33fa7b932f26ef690fd238b3fed2b4a63c30bf7 Author: Justin Luth <[email protected]> AuthorDate: Thu Sep 29 15:27:47 2022 -0400 Commit: Miklos Vajna <[email protected]> CommitDate: Sat Oct 1 08:54:24 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 <[email protected]> (cherry picked from commit c001aa7e9bc2b97ee6385dfd4e9f3010139297b2) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140754 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> diff --git a/filter/source/msfilter/msvbahelper.cxx b/filter/source/msfilter/msvbahelper.cxx index 872b7b863942..baedcc32b95c 100644 --- a/filter/source/msfilter/msvbahelper.cxx +++ b/filter/source/msfilter/msvbahelper.cxx @@ -246,7 +246,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 );
