diff options
author | Noel Power <noel.power@novell.com> | 2012-03-15 19:50:11 +0000 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-03-15 19:50:59 +0000 |
commit | 1bd695d3ddcbce48899a70130b5e948c48541d17 (patch) | |
tree | 8c0e9ace7aff09d9cfa6c7afb293bf5d09fe6255 /oox | |
parent | 20d55ad66f0f94c9f6a583b5406a39717c1c6d46 (diff) |
fix mishandling of 'End Sub' is there is a trailing comment fod#46889
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ole/vbamodule.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/ole/vbamodule.cxx b/oox/source/ole/vbamodule.cxx index 9f0e5ffe6bf8..d5c1db3e8708 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 ) |