diff options
-rw-r--r-- | sw/source/filter/ww8/wrtww8.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index f8e783a02188..0f5372b1f7a0 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -2155,7 +2155,7 @@ void SwWW8Writer::OutWW8TableDefinition } } - SwTwips nSz = nTblOffset; + SwTwips nSz = 0; sal_uInt32 n = 0; InsUInt16(nTblOffset); @@ -2168,6 +2168,8 @@ void SwWW8Writer::OutWW8TableDefinition if (bRelBoxSize) nCalc = (nCalc * nPageSize) / nTblSz; + nCalc += nTblOffset; + InsUInt16(static_cast<USHORT>(nCalc)); } |