summaryrefslogtreecommitdiff
path: root/vcl/source/window/toolbox2.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-11-01 11:59:39 +0000
committerKurt Zenker <kz@openoffice.org>2005-11-01 11:59:39 +0000
commit5be4805d50db2f0807cfec641d3253b7d75a4958 (patch)
tree4e7dc4ed7f64d087fda6d1e5a5cffcafa40251b4 /vcl/source/window/toolbox2.cxx
parentcf66025aca9d801a7d29572f9c98e85588957557 (diff)
INTEGRATION: CWS vcl43 (1.37.236); FILE MERGED
2005/08/23 10:59:53 ssa 1.37.236.1: #i52217# perform item updates asynchronously to avoid paint problems
Diffstat (limited to 'vcl/source/window/toolbox2.cxx')
-rw-r--r--vcl/source/window/toolbox2.cxx27
1 files changed, 7 insertions, 20 deletions
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 8ecb972eff4b..a5797d6117c5 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: toolbox2.cxx,v $
*
- * $Revision: 1.40 $
+ * $Revision: 1.41 $
*
- * last change: $Author: kz $ $Date: 2005-11-01 10:34:36 $
+ * last change: $Author: kz $ $Date: 2005-11-01 12:59:39 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -474,29 +474,16 @@ void ToolBox::ImplUpdateItem( USHORT nIndex )
{
if ( nIndex == 0xFFFF )
{
- // Nur direkt neu ausgeben, wenn nicht neu formatiert
- // werden muss
- if ( !mbFormat )
- {
- USHORT nItemCount = mpData->m_aItems.size();
- for ( USHORT i = 0; i < nItemCount; i++ )
- ImplDrawItem( i, (i == mnCurPos) ? TRUE : FALSE );
- }
- else
- {
- Invalidate( Rectangle( mnLeftBorder, mnTopBorder,
- mnDX-mnRightBorder-1, mnDY-mnBottomBorder-1 ) );
- }
+ // #i52217# no immediate draw as this might lead to paint problems
+ Invalidate( Rectangle( mnLeftBorder, mnTopBorder,
+ mnDX-mnRightBorder-1, mnDY-mnBottomBorder-1 ) );
}
else
{
- // Nur direkt neu ausgeben, wenn nicht neu formatiert
- // werden muss
if ( !mbFormat )
{
- ImplToolItem* pItem = &mpData->m_aItems[nIndex];
- //ImplDrawItem( nIndex, (nIndex == mnCurPos) ? TRUE : FALSE );
- ImplDrawItem( nIndex, (pItem->mnId == mnHighItemId) ? 2 : FALSE );
+ // #i52217# no immediate draw as this might lead to paint problems
+ Invalidate( mpData->m_aItems[nIndex].maRect );
}
else
maPaintRect.Union( mpData->m_aItems[nIndex].maRect );