summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-08 11:22:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-08 12:48:13 +0200
commit77e260f915e0c77ddb1e915e9fd27ab0bdccc763 (patch)
tree73f6c2eae21791da57ebd7a9a0f2cd35dd5031aa /accessibility
parent3889e2f2a1f5f87e972e67900b5ff5ef1289479d (diff)
tdf#121793 speedup VCLXAccessibleStatusBarItem::GetItemText
no need to do a full layout to get the item text. Saves about 15% of the CPU load off Change-Id: I07eaf6bc64ec90d81057b8360725e0b052c6dca7 Reviewed-on: https://gerrit.libreoffice.org/75198 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/standard/vclxaccessiblestatusbaritem.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
index cf3b20773f5b..f80d04940d21 100644
--- a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
+++ b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
@@ -122,13 +122,8 @@ void VCLXAccessibleStatusBarItem::SetItemText( const OUString& sItemText )
OUString VCLXAccessibleStatusBarItem::GetItemText()
{
OUString sText;
- vcl::ControlLayoutData aLayoutData;
if ( m_pStatusBar )
- {
- tools::Rectangle aItemRect = m_pStatusBar->GetItemRect( m_nItemId );
- m_pStatusBar->RecordLayoutData( &aLayoutData, aItemRect );
- sText = aLayoutData.m_aDisplayText;
- }
+ sText = m_pStatusBar->GetItemText( m_nItemId );
return sText;
}