summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svtools/source/control/valueset.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index 0502bbe4017c..e57152021cbb 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -1097,14 +1097,14 @@ void ValueSet::ImplTracking( const Point& rPos, bool bRepeat )
ValueSetItem* pItem = ImplGetItem( ImplGetItem( rPos ) );
if ( pItem )
{
- if( GetStyle() & WB_MENUSTYLEVALUESET )
+ if( GetStyle() & WB_MENUSTYLEVALUESET || GetStyle() & WB_FLATVALUESET )
mbHighlight = true;
ImplHighlightItem( pItem->mnId );
}
else
{
- if( GetStyle() & WB_MENUSTYLEVALUESET )
+ if( GetStyle() & WB_MENUSTYLEVALUESET || GetStyle() & WB_FLATVALUESET )
mbHighlight = true;
ImplHighlightItem( mnSelItemId, false );
@@ -1188,7 +1188,7 @@ void ValueSet::MouseButtonUp( const MouseEvent& rMouseEvent )
void ValueSet::MouseMove( const MouseEvent& rMouseEvent )
{
// because of SelectionMode
- if ( mbSelection || (GetStyle() & WB_MENUSTYLEVALUESET) )
+ if ( mbSelection || (GetStyle() & WB_MENUSTYLEVALUESET) || (GetStyle() & WB_FLATVALUESET))
ImplTracking( rMouseEvent.GetPosPixel(), false );
Control::MouseMove( rMouseEvent );
}