summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svtools/source/control/valueset.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index 576a091c1a0c..97ecc035c302 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -700,16 +700,10 @@ void ValueSet::ImplDrawSelect()
if ( !IsReallyVisible() )
return;
- sal_Bool bFocus = HasFocus();
- sal_Bool bDrawSel;
+ const bool bFocus = HasFocus();
+ const bool bDrawSel = !( (mbNoSelection && !mbHighlight) || (!mbDrawSelection && mbHighlight) );
- if ( (mbNoSelection && !mbHighlight) || (!mbDrawSelection && mbHighlight) )
- bDrawSel = sal_False;
- else
- bDrawSel = sal_True;
-
- if ( !bFocus &&
- ((mbNoSelection && !mbHighlight) || (!mbDrawSelection && mbHighlight)) )
+ if ( !bFocus && !bDrawSel )
{
XubString aEmptyStr;
ImplDrawItemText( aEmptyStr );