[Libreoffice-commits] .: oox/source

Noel Power noelp at kemper.freedesktop.org
Thu Mar 15 12:51:05 PDT 2012


 oox/source/ole/vbamodule.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1bd695d3ddcbce48899a70130b5e948c48541d17
Author: Noel Power <noel.power at novell.com>
Date:   Thu Mar 15 19:50:11 2012 +0000

    fix mishandling of 'End Sub' is there is a trailing comment fod#46889

diff --git a/oox/source/ole/vbamodule.cxx b/oox/source/ole/vbamodule.cxx
index 9f0e5ff..d5c1db3 100644
--- a/oox/source/ole/vbamodule.cxx
+++ b/oox/source/ole/vbamodule.cxx
@@ -313,7 +313,7 @@ OUString VbaModule::readSourceCode( StorageBase& rVbaStrg, const Reference< XNam
                             procInfo.nPos = aSourceCode.getLength();
                         }
                     }
-                    else if ( mbExecutable && aCodeLine.trim().equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("End Sub")) )
+                    else if ( mbExecutable && aCodeLine.trim().matchAsciiL( RTL_CONSTASCII_STRINGPARAM("End Sub")) )
                     {
                         // un-matched End Sub
                         if ( !procInfo.bInProcedure )


More information about the Libreoffice-commits mailing list