summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorJustin Luth <justin.luth@collabora.com>2022-09-29 15:27:47 -0400
committerMiklos Vajna <vmiklos@collabora.com>2022-10-01 08:54:24 +0200
commitc33fa7b932f26ef690fd238b3fed2b4a63c30bf7 (patch)
tree62fe9437d34627084d0921a843a5e0651aa5aef1 /filter
parent6d1fda2be75adbbb4a47b16aa6ef68cea98f7ece (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> (cherry picked from commit c001aa7e9bc2b97ee6385dfd4e9f3010139297b2) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140754 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/msvbahelper.cxx2
1 files changed, 1 insertions, 1 deletions
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 );