From fb8f6927feed9751cd60727a9f3de13e595c4451 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 11 Mar 2022 16:31:58 +0000 Subject: expand with some specific documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3886411c07b82417c29edaf612dd3720189a9ea9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131388 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- sw/source/filter/ww8/ww8scan.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sw') diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index c7aac65308ee..29422991cc15 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -8420,14 +8420,16 @@ sal_uInt16 wwSprmParser::GetSprmTailLen(sal_uInt16 nId, const sal_uInt8* pSprm, nL = aSprm.nLen; // Excl. Token break; case L_VAR: - // Variable 1-Byte Length? - // Excl. Token + Var-Lengthbyte + // Variable 1-Byte Length + // parameter length (i.e. excluding token and length byte) nL = static_cast< sal_uInt16 >(pSprm[1 + mnDelta] + aSprm.nLen); break; case L_VAR2: { - // Variable 2-Byte Length? - // Excl. Token + Var-Lengthbyte + // Variable 2-Byte Length + // For sprmTDefTable and sprmTDefTable10, the length of the + // parameter plus 1 is recorded in the two bytes beginning + // at offset (WW7-) 1 or (WW8+) 2 sal_uInt8 nIndex = 1 + mnDelta; sal_uInt16 nCount; if (nIndex + 1 >= nRemLen) -- cgit