summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Baudin <xapantu@gmail.com>2011-05-19 21:26:51 +0200
committerTor Lillqvist <tlillqvist@novell.com>2011-05-20 11:59:16 +0300
commita7d3ed7cd872ae714302eb931a4980492fb95d74 (patch)
tree131f42b5507cd5a085fe30f680d4e11858a05b31
parentb1bfc20b092cb670920f5ef0318b749a881be7c9 (diff)
Fix a bug about presssed button state
-rw-r--r--vcl/source/window/toolbox.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 5e1e3a43ad..fc737c2f19 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -3494,7 +3494,8 @@ void ToolBox::ImplDrawItem( sal_uInt16 nPos, sal_Bool bHighlight, sal_Bool bPain
MetricVector* pVector = bLayout ? &mpData->m_pLayoutData->m_aUnicodeBoundRects : NULL;
String* pDisplayText = bLayout ? &mpData->m_pLayoutData->m_aDisplayText : NULL;
- bHighlight = bHighlight && pItem->mbEnabled;
+ if(!pItem->mbEnabled)
+ bHighlight = 0;
// Falls Rechteck ausserhalb des sichbaren Bereichs liegt
if ( pItem->maRect.IsEmpty() )