Remove unnecessary code from ae37972cd2
Git commit: ae37972cd2
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>
This commit is contained in:
committed by
Thorsten Behrens
parent
ded4dcbbce
commit
758d2099ae
@@ -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 );
|
||||
|
Reference in New Issue
Block a user