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

New commits:
commit 6de6231fa9266b64aac87ee3415e4855bbaeec4e
Author:     Khaled Hosny <kha...@aliftype.com>
AuthorDate: Mon Sep 26 06:43:37 2022 +0200
Commit:     خالد حسني <kha...@aliftype.com>
CommitDate: Mon Sep 26 07:53:40 2022 +0200

    tdf#150726: Fix previous fix
    
    Fix regression from:
    
    commit 092e37a284ea8b8bc1e8dabbbeb001c98012a996
    Author: Khaled Hosny <kha...@aliftype.com>
    Date:   Sun Sep 25 11:37:05 2022 +0200
    
        tdf#150726: Pass full string to DrawTextArray() when drawing bullet
    
    Since we are no longer copying the string, we need to use the actual
    rInf.GetIdx() here as well.
    
    Change-Id: Ic68593407cb313785c9d734e4a3a3687e2ba4eee
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140582
    Tested-by: Jenkins
    Reviewed-by: خالد حسني <kha...@aliftype.com>

diff --git a/sw/source/core/txtnode/fntcache.cxx 
b/sw/source/core/txtnode/fntcache.cxx
index fe095aa5105b..290ff8cc1276 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -1340,7 +1340,7 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
                          aKernArray, aKashidaArray, sal_Int32(rInf.GetIdx()), 
1 );
             if( bBullet )
                 rInf.GetOut().DrawTextArray( aTextOriginPos, rInf.GetText(), 
aKernArray, {},
-                                             rInf.GetIdx() ? 1 : 0, 1 );
+                                             sal_Int32(rInf.GetIdx()), 1 );
         }
         else
         {

Reply via email to