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

New commits:
commit e2ea079d6a11d0bac595590265096363199d8578
Author:     Mike Kaganski <[email protected]>
AuthorDate: Wed Jan 14 07:32:38 2026 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Wed Jan 14 09:10:56 2026 +0100

    SwRectFnSet::YDiff returns tools::Long; no need to use SwTwips and cast
    
    Change-Id: I865ce430c9e67d158a1a4fb2f129b67d85f1a7d8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197232
    Reviewed-by: Mike Kaganski <[email protected]>
    Tested-by: Jenkins

diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx
index 27b3af4ac3c2..edf0cba2343e 100644
--- a/sw/source/core/layout/tabfrm.cxx
+++ b/sw/source/core/layout/tabfrm.cxx
@@ -4889,11 +4889,11 @@ static tools::Long CalcHeightWithFlys_Impl(const 
SwFrame* pTmp, const SwFrame* p
                         // I do not want to remove the first calculation 
because
                         // if clipping has been applied, using the 
GetCurrRelPos
                         // might be the better option to calculate nHeight.
-                        const SwTwips nDistOfFlyBottomToAnchorTop2 = 
aRectFnSet.YDiff(
+                        const tools::Long nDistOfFlyBottomToAnchorTop2 = 
aRectFnSet.YDiff(
                                                                         
aRectFnSet.GetBottom(pAnchoredObj->GetObjRect()),
                                                                         
aRectFnSet.GetBottom(pFrame->getFrameArea()) );
 
-                        nHeight = std::max( nHeight, 
tools::Long(nDistOfFlyBottomToAnchorTop2 ));
+                        nHeight = std::max( nHeight, 
nDistOfFlyBottomToAnchorTop2 );
                     }
                 }
             }

Reply via email to