sw/source/core/layout/tabfrm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f6feaad3bf2c02785ba58a502c9d6e4121a480ee Author: Mike Kaganski <[email protected]> AuthorDate: Wed Feb 4 13:12:30 2026 +0100 Commit: Mike Kaganski <[email protected]> CommitDate: Wed Feb 4 16:20:29 2026 +0100 No need to try to split the row, when there is no space Looks like a safe (and rarely triggered) optimization. Change-Id: I3a8835c262a192dbaa084ef0e4daeab39f33bc27 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198673 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index 2e702f736a74..3867dabec329 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -1158,7 +1158,7 @@ bool SwTabFrame::Split(const SwTwips nCutPos, bool bTryToSplit, // table, or it will be set to false under certain // conditions that are not suitable for splitting // the row. - bool bSplitRowAllowed = bTryToSplit; + bool bSplitRowAllowed = bTryToSplit && nRemainingSpaceForLastRow > 0; if (bSplitRowAllowed && !pRow->IsRowSplitAllowed()) { // A row larger than the entire page ought to be allowed to split regardless of setting,
