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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user