sw/source/core/text/porlay.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b59df057122f5819140d844bd395cff95fbabfcc
Author:     Oliver Specht <oliver.spe...@cib.de>
AuthorDate: Wed Jul 31 07:17:56 2024 +0200
Commit:     Oliver Specht <oliver.spe...@cib.de>
CommitDate: Mon Sep 9 07:12:44 2024 +0200

    tdf#137335 follow-up to f806fc136b3410ec9a1e09320d100c78b33c867b
    
    Fixes 'always true'  part in else statement
    
    Change-Id: Ie8a8926601a23ee3259469452619ab5dde2e5132
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171266
    Tested-by: Jenkins
    Reviewed-by: Oliver Specht <oliver.spe...@cib.de>

diff --git a/sw/source/core/text/porlay.cxx b/sw/source/core/text/porlay.cxx
index 0e7f7b8a4634..fbba4cc4cdaf 100644
--- a/sw/source/core/text/porlay.cxx
+++ b/sw/source/core/text/porlay.cxx
@@ -696,7 +696,7 @@ void SwLineLayout::CalcLine( SwTextFormatter &rLine, 
SwTextFormatInfo &rInf )
         {
             if(  mnAscent < nSpacePortionAscent )
                 mnAscent = nSpacePortionAscent;
-            if (!bHasTabPortions || Height() < nSpacePortionHeight)
+            if (Height() < nSpacePortionHeight)
                 Height(nSpacePortionHeight, true);
         }
     }

Reply via email to