diff options
author | Lucas Baudin <xapantu@gmail.com> | 2011-05-19 21:26:51 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-05-20 11:59:16 +0300 |
commit | a7d3ed7cd872ae714302eb931a4980492fb95d74 (patch) | |
tree | 131f42b5507cd5a085fe30f680d4e11858a05b31 | |
parent | b1bfc20b092cb670920f5ef0318b749a881be7c9 (diff) |
Fix a bug about presssed button state
-rw-r--r-- | vcl/source/window/toolbox.cxx | 3 |
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() ) |