sw/source/core/layout/tabfrm.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit aa70e0d23abc99191829b4f1bc421e04a78e0a21
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Wed Oct 25 09:45:05 2023 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Oct 26 13:59:38 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>
    (cherry picked from commit d6527f127622f23ac529ce667fac5ff69ea33ea4)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158439
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx
index 079377aedb3c..bbea3ddbb6f0 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())
                         {

Reply via email to