From 2caf18d3a86662bfcfb2e50704ee4cf63f7e169e Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Tue, 12 May 2026 09:44:32 -0400 Subject: [PATCH] tdf#137335 sw whitespace lineheight: revert bHasBlankPortion This was changed in 25.2 to mean only a space portion, but that altered some existing logic so that a HolePortion is no longer considered a blankPortion. This reverting patch is only based on a code read. I don't have evidence that it causes problems, but I see no reason for the change based on the logic of the rest of the commit. Change-Id: I2c2210682a191e4efba0f301a6ae83330d91d932 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205134 Reviewed-by: Justin Luth Tested-by: Jenkins --- sw/source/core/text/porlay.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/core/text/porlay.cxx b/sw/source/core/text/porlay.cxx index 78b35db5ac23..51dbb7cd3388 100644 --- a/sw/source/core/text/porlay.cxx +++ b/sw/source/core/text/porlay.cxx @@ -365,10 +365,10 @@ void SwLineLayout::CalcLine( SwTextFormatter &rLine, SwTextFormatInfo &rInf ) { nSpacePortionHeight = pPos->Height(); } - bHasBlankPortion = true; } bTmpDummy &= !pPos->InTabGrp(); pPos = pPos->GetNextPortion(); + bHasBlankPortion = true; continue; } }