[Libreoffice-commits] core.git: svtools/source

Kshitij Pathania kshitijpathania at gmail.com
Wed Nov 29 17:09:16 UTC 2017


 svtools/source/control/valueset.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 584a73ce23706c1e0dfbf32b4dbdbe6c79fb0ef2
Author: Kshitij Pathania <kshitijpathania at gmail.com>
Date:   Thu Sep 28 07:32:52 2017 +0530

    tdf#111801 added hover state to tabledesign sidebar
    
    Change-Id: I1ceb806c6423964346c97d7b1ef6dcac46698902
    Reviewed-on: https://gerrit.libreoffice.org/42882
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
    Tested-by: Tamás Zolnai <tamas.zolnai at collabora.com>

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 );
 }


More information about the Libreoffice-commits mailing list