reset cached SalLayoutGlyphs when statusbar text changes

A mistake from bfb6a42e26.

Change-Id: Iddf885d41177e6dbbfdc1c916b45843f4d7ba499
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133796
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
This commit is contained in:
Luboš Luňák
2022-05-04 08:52:28 +02:00
parent 2cb75eb504
commit ed58593fcb
+1
View File
@@ -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;
}