From a4ed3d9a1ffa1b51ba4352a955c950235f099fdc Mon Sep 17 00:00:00 2001 From: Tamas Bunth Date: Thu, 1 Mar 2018 15:32:18 +0100 Subject: [PATCH] tdf#115353 Status bar: no cache in settext MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6c1312bbba553be738e23cee0c76d589c809dff8 Reviewed-on: https://gerrit.libreoffice.org/50584 Reviewed-by: Tamás Bunth Tested-by: Tamás Bunth --- vcl/source/window/status.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index 8cfcaca3071f..5acbb2457012 100644 --- a/vcl/source/window/status.cxx +++ b/vcl/source/window/status.cxx @@ -1169,9 +1169,6 @@ void StatusBar::SetItemText( sal_uInt16 nItemId, const OUString& rText ) std::unique_ptr pSalLayout = ImplLayout(pItem->maText,0,-1); long nWidth = GetTextWidth( pItem->maText,0,-1,nullptr,pSalLayout.get() ) + nFudge; - // update cache - pItem->mxLayoutCache = std::move(pSalLayout); - if( (nWidth > pItem->mnWidth + STATUSBAR_OFFSET) || ((nWidth < pItem->mnWidth) && (mnDX - STATUSBAR_OFFSET) < mnItemsWidth )) {