Kaydet (Commit) 1bd695d3 authored tarafından Noel Power's avatar Noel Power

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

üst 20d55ad6
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment