summaryrefslogtreecommitdiff
path: root/sw/source/core/layout
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2020-01-16 21:14:45 +0100
committerLászló Németh <nemeth@numbertext.org>2020-01-17 12:34:57 +0100
commitf7e071a00542c414a7e9d7bcf4434d908f225e59 (patch)
tree6efafe75f10dc6dbbeca5ee970a9822a8c6108d9 /sw/source/core/layout
parent1655819c8914efad28f218f56d8d89d4e4bd9488 (diff)
tdf#88496 DOCX: disable long repeating table header
if the pages could contain only that, hiding the non-repeating table rows. This behavior is similar to MSO. See also commit 110781a3a27dffe9e6690839bdce993796a08331 (tdf#58944 DOCX import: workaround for hidden table headers). Change-Id: I646be45c6d2c5fe9e1df0badeee4583097dc79f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86928 Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/source/core/layout')
-rw-r--r--sw/source/core/layout/tabfrm.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx
index 26d834113ee8..b3f4ffef0ab2 100644
--- a/sw/source/core/layout/tabfrm.cxx
+++ b/sw/source/core/layout/tabfrm.cxx
@@ -1074,10 +1074,11 @@ bool SwTabFrame::Split( const SwTwips nCutPos, bool bTryToSplit, bool bTableRowK
if ( nRowCount < nRepeat )
{
// First case: One of the repeated headline does not fit to the page anymore.
- // At least one more non-heading row has to stay in this table in
- // order to avoid loops:
+ // tdf#88496 Disable repeated headline (like for #i44910#) to avoid loops and
+ // to fix interoperability problems (very long tables only with headline)
OSL_ENSURE( !GetIndPrev(), "Table is supposed to be at beginning" );
- bKeepNextRow = true;
+ m_pTable->SetRowsToRepeat(0);
+ return false;
}
else if ( !GetIndPrev() && nRepeat == nRowCount )
{