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

New commits:
commit 98cf3bfefd10f8680d8307920c8ad8a4ebf5127e
Author:     Caolán McNamara <[email protected]>
AuthorDate: Mon Dec 20 11:38:47 2021 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Tue Dec 21 09:48:36 2021 +0100

    we already have the glyph positions in this case
    
    Change-Id: Ie3c1a84cf7c33e8bf758a4b849ded6f2a31bd81b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127148
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/sw/source/core/txtnode/fntcache.cxx 
b/sw/source/core/txtnode/fntcache.cxx
index 93e83c2013e9..f482b66f66bc 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -1513,8 +1513,12 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
         }
         else
         {
+#ifndef NDEBUG
             rInf.GetOut().GetTextArray( rInf.GetText(), &aKernArray,
                     sal_Int32(rInf.GetIdx()), sal_Int32(rInf.GetLen()));
+            assert(aKernArray == aScrArray);
+#endif
+            aKernArray = aScrArray;
         }
 
         // Modify Printer and ScreenArrays for special justifications

Reply via email to