[Libreoffice-commits] .: Branch 'libreoffice-3-4' - vcl/source
Tor Lillqvist
tml at kemper.freedesktop.org
Fri May 20 03:05:09 PDT 2011
vcl/source/window/toolbox.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit fc1301e5940dbb38ed10719f87b44848f0aa65db
Author: Lucas Baudin <xapantu at gmail.com>
Date: Fri May 20 13:01:11 2011 +0300
Fix a bug about presssed button state (fdo#36613)
Signed-off-by: Tor Lillqvist <tlillqvist at novell.com>
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 0897047..a8e1cfb 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() )
More information about the Libreoffice-commits
mailing list