summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-03-11 16:31:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-03-12 11:51:52 +0100
commitfb8f6927feed9751cd60727a9f3de13e595c4451 (patch)
tree7769a72d679b3da68cba380f824899b2a6f34ef9 /sw
parentd8a27d9fda55a355ca0376f7024af06bb0cd4984 (diff)
expand with some specific documentation
Change-Id: I3886411c07b82417c29edaf612dd3720189a9ea9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131388 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx10
1 files changed, 6 insertions, 4 deletions
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)