diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-01-16 17:42:39 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-01-19 14:29:54 +0100 |
commit | 254ba40392b17c2cb2fa1ef35a835d19a5f4a5e1 (patch) | |
tree | 8b391cfa4f6756c432d8b3b2a0f431f9fc817346 /sw | |
parent | 5785734a1947c6b3fb2081b7e33fe3d0bd125bbb (diff) |
remove pointless forward moving of a table (bnc#706138)
This appears to be broken. Why should a table where all rows want to be kept
together be moved one page forward just because there is something
before it on the page where it is? It either fits its curent page, in which
case it's wrong, or it does not fit, in which case it may not fit the following
page either and something else needs to take care of it anyway.
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/tabfrm.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index 1571b71ceb37..ec32c68bd9fb 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -2404,11 +2404,6 @@ void SwTabFrm::MakeAll() ++nMinNumOfLines; pTmpRow = static_cast<const SwRowFrm*>(pTmpRow->GetNext()); } - // Check if all lines want to keep together and we - // have a pIndPrev. In this case we set nDeadLine - // to 0, forcing the table to move forward. - if ( !pTmpRow && pIndPrev ) - nDeadLine = 0; } if ( !bTryToSplit ) |