summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-05-04 07:13:12 +0200
committerLuboš Luňák <l.lunak@collabora.com>2022-05-04 08:52:28 +0200
commited58593fcbf1e72c8a2fd04e4c30691db22cdf6f (patch)
treeab8b79cb17fad2fbda6298d28e3b5a49aa3e4ee0 /vcl
parent2cb75eb504e3fedb9c93bbfee3609021f583f849 (diff)
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.lunak@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/status.cxx1
1 files changed, 1 insertions, 0 deletions
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;
}