sw/source/filter/ww8/ww8scan.cxx |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

New commits:
commit fb8f6927feed9751cd60727a9f3de13e595c4451
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Mar 11 16:31:58 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sat Mar 12 11:51:52 2022 +0100

    expand with some specific documentation
    
    Change-Id: I3886411c07b82417c29edaf612dd3720189a9ea9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131388
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

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)

Reply via email to