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

New commits:
commit f48198c5f35113f1a68e18ae100e129932928157
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Oct 31 15:01:54 2024 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Nov 1 12:52:06 2024 +0100

    use double in SwFntObj::DrawText
    
    after
      commit 11b15571475414ef853e21a6c96afa2ac81f848f
      "convert KernArray from sal_Int32 to double"
    
    Change-Id: I9921ff98bc6f6eb82b0f94771b02d9b9f4dcec4b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175873
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/core/txtnode/fntcache.cxx 
b/sw/source/core/txtnode/fntcache.cxx
index 9d8b678b9681..740c419a7d25 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -1117,7 +1117,7 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
 
             // Modify Array for special justifications
 
-            tools::Long nSpaceAdd = rInf.GetSpace() / SPACING_PRECISION_FACTOR;
+            double nSpaceAdd = rInf.GetSpace() / 
double(SPACING_PRECISION_FACTOR);
             bool bSpecialJust = false;
 
             if ( rInf.GetFont() && rInf.GetLen() )
@@ -1193,7 +1193,7 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
                 }
             }
 
-            tools::Long nKernSum = rInf.GetKern();
+            double nKernSum = rInf.GetKern();
 
             if ( bStretch || m_bPaintBlank || rInf.GetKern() || bSpecialJust )
             {

Reply via email to