diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-10-17 09:40:21 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-10-17 09:40:21 +0200 |
commit | 74cc7a00390d0c7f55c838a6fdcc6efafb0e6852 (patch) | |
tree | 1f48172a979b63395a1571e4c665a01e05bf7084 /sw | |
parent | bfdc36ede39f5bb165446a6f02b33d82589bd64c (diff) |
Revert "sw: work around layout loop with split sections inside nested tables"
This reverts commit bfdc36ede39f5bb165446a6f02b33d82589bd64c. It was a
workaround, root cause fix is coming.
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/tabfrm.cxx | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index 0a336f9cbe76..0c6db983d50d 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -4319,43 +4319,6 @@ SwTwips SwRowFrame::GrowFrame( SwTwips nDist, bool bTst, bool bInfo ) return nReal; } -static bool lcl_ContainsNestedTableContainingSection(SwRowFrame* pRow) -{ - SwFrame* pLower = pRow->Lower(); - if (!pLower) - return false; - if (!pLower->IsCellFrame()) - return false; - SwCellFrame* pOuterCell = static_cast<SwCellFrame*>(pLower); - - pLower = pOuterCell->Lower(); - if (!pLower) - return false; - if (!pLower->IsTabFrame()) - return false; - SwTabFrame* pInnerTab = static_cast<SwTabFrame*>(pLower); - - pLower = pInnerTab->Lower(); - if (!pLower) - return false; - if (!pLower->IsRowFrame()) - return false; - SwRowFrame* pInnerRow = static_cast<SwRowFrame*>(pLower); - - pLower = pInnerRow->Lower(); - if (!pLower) - return false; - if (!pLower->IsCellFrame()) - return false; - SwCellFrame* pInnerCell = static_cast<SwCellFrame*>(pLower); - - pLower = pInnerCell->Lower(); - if (!pLower) - return false; - - return pLower->IsSctFrame(); -} - SwTwips SwRowFrame::ShrinkFrame( SwTwips nDist, bool bTst, bool bInfo ) { SWRECTFN( this ) @@ -4444,8 +4407,7 @@ SwTwips SwRowFrame::ShrinkFrame( SwTwips nDist, bool bTst, bool bInfo ) && !pTab->IsInRecalcLowerRow() ) { SwTabFrame* pMasterTab = pTab->FindMaster(); - if (!lcl_ContainsNestedTableContainingSection(this)) - pMasterTab->InvalidatePos(); + pMasterTab->InvalidatePos(); } } AdjustCells( (Prt().*fnRect->fnGetHeight)() - nReal, true ); |