diff options
author | Vitaliy Anderson <vanderson@smartru.com> | 2017-03-03 06:29:37 -0800 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2017-03-07 11:01:04 +0000 |
commit | c4fc38a86f77d87263e78fae04a31f19c21fb017 (patch) | |
tree | 73c2cb710caa19e4b3877c81d4b88a13bd61c12e /sw/source/filter/ww8/ww8par2.cxx | |
parent | 8240be9170cc473506531dad2fda82469ae84443 (diff) |
tdf#105570: Treat sprmTTableHeader properly.
Only take into account sprmTTableHeader if all previous rows had it.
Change-Id: I0f81da366c148963503b4aeba778f5d97aa72d26
Reviewed-on: https://gerrit.libreoffice.org/34931
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/filter/ww8/ww8par2.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8par2.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx index 6b424a4d0594..6257201ba308 100644 --- a/sw/source/filter/ww8/ww8par2.cxx +++ b/sw/source/filter/ww8/ww8par2.cxx @@ -1839,7 +1839,6 @@ WW8TabDesc::WW8TabDesc(SwWW8ImplReader* pIoClass, WW8_CP nStartCp) : for (int nLoop = 0; nLoop < 2; ++nLoop) { - bool bRepeatedSprm = false; const sal_uInt8* pParams; while (aSprmIter.GetSprms() && nullptr != (pParams = aSprmIter.GetAktParams())) { @@ -1870,11 +1869,9 @@ WW8TabDesc::WW8TabDesc(SwWW8ImplReader* pIoClass, WW8_CP nStartCp) : pTableBorders90 = pParams; // process at end break; case sprmTTableHeader: - if (!bRepeatedSprm) - { - m_nRowsToRepeat++; - bRepeatedSprm = true; - } + // tdf#105570 + if ( m_nRowsToRepeat == m_nRows ) + m_nRowsToRepeat = (m_nRows + 1); break; case sprmTJc: // sprmTJc - Justification Code |