diff options
author | Keith Curtis <keithcu@gmail.com> | 2018-05-22 03:35:37 -0400 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-05-25 16:30:19 +0200 |
commit | 758d2099ae281e270ef014711b693580ab27206b (patch) | |
tree | 1e99287ea83529827e052e5b057e7be5c72f42d3 /vcl | |
parent | ded4dcbbce875efeffba7e894a6dea1f584e8e9b (diff) |
Remove unnecessary code from ae37972cd25117d467d34ee8591c21dcbb5a0fec
Git commit: ae37972cd25117d467d34ee8591c21dcbb5a0fec added some logic at
the bottom to call Toolbox::SetItemImage to trigger the bitmap doubling
code. This is no longer needed and is faster without.
Change-Id: I0fb0538000d5616cb8d8a0ae35e15fb09cdf2c59
Reviewed-on: https://gerrit.libreoffice.org/54654
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index de0faecfa607..cc86b0d9a0f9 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -373,7 +373,6 @@ void ToolBox::InsertItem( sal_uInt16 nItemId, const Image& rImage, ToolBoxItemBi // create item and add to list mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), ImplToolItem( nItemId, rImage, nBits ) ); - SetItemImage(nItemId, rImage); mpData->ImplClearLayoutData(); ImplInvalidate( true ); @@ -393,7 +392,6 @@ void ToolBox::InsertItem( sal_uInt16 nItemId, const Image& rImage, const OUStrin // create item and add to list mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), ImplToolItem( nItemId, rImage, MnemonicGenerator::EraseAllMnemonicChars(rText), nBits ) ); - SetItemImage(nItemId, rImage); mpData->ImplClearLayoutData(); ImplInvalidate( true ); |