vcl/source/window/status.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit ed58593fcbf1e72c8a2fd04e4c30691db22cdf6f
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Wed May 4 07:13:12 2022 +0200
Commit:     Luboš Luňák <l.lu...@collabora.com>
CommitDate: Wed May 4 08:52:28 2022 +0200

    reset cached SalLayoutGlyphs when statusbar text changes
    
    A mistake from bfb6a42e26de28d88ced43eb3a2c63ce323d33aa.
    
    Change-Id: Iddf885d41177e6dbbfdc1c916b45843f4d7ba499
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133796
    Tested-by: Jenkins
    Reviewed-by: Luboš Luňák <l.lu...@collabora.com>

diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index f25bb64c7f10..d6803cc5b4c8 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -1151,6 +1151,7 @@ void StatusBar::SetItemText( sal_uInt16 nItemId, const 
OUString& rText, int nCha
     }
     else
     {
+        pItem->mLayoutGlyphsCache.reset();
         nWidth = GetTextWidth( pItem->maText,0,-1,nullptr, 
pItem->GetTextGlyphs(GetOutDev())) + nFudge;
     }
 

Reply via email to