sw/source/core/layout/tabfrm.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit d6527f127622f23ac529ce667fac5ff69ea33ea4 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Wed Oct 25 09:45:05 2023 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Thu Oct 26 08:26:21 2023 +0200 Related: tdf#157590 sw floattable: avoid a bit of not needed work See <https://gerrit.libreoffice.org/c/core/+/158379/2#message-b9a1e9b65b5fe7bfec6a88af19032dcef73ff920>, we only need to work out if this row has spans in case the row would split, can skip this otherwise. Change-Id: Ic61dade7f42e7e43322e902a1f91d6a62bdc0ed8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158414 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index 688f1e9770a2..b671e2248550 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -2645,10 +2645,10 @@ void SwTabFrame::MakeAll(vcl::RenderContext* pRenderContext) auto pUpperFly = static_cast<SwFlyFrame*>(GetUpper()); bFlySplit = pUpperFly->IsFlySplitAllowed(); - if (bFlySplit) + if (bFlySplit && bTryToSplit) { - // See if this is a nested split fly where the inner table also has - // rowspans. + // This is a split fly that wants to split the row itself. See if it's also + // nested. If so, we'll want to know if the row split has rowspans. SwTextFrame* pAnchorCharFrame = pUpperFly->FindAnchorCharFrame(); if (pAnchorCharFrame && pAnchorCharFrame->IsInFly()) {