diff options
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/valueset.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index 67378218fa3d..a5c1b21e47e9 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -457,9 +457,9 @@ bool ValueSet::KeyInput( const KeyEvent& rKeyEvent ) return true; } -void ValueSet::ImplTracking(const Point& rPos) +void ValueSet::ImplTracking(bool bLeaveWindow, const Point& rPos) { - ValueSetItem* pItem = ImplGetItem( ImplGetItem( rPos ) ); + ValueSetItem* pItem = bLeaveWindow ? nullptr : ImplGetItem(ImplGetItem(rPos)); if ( pItem ) { if( GetStyle() & WB_MENUSTYLEVALUESET || GetStyle() & WB_FLATVALUESET ) @@ -517,7 +517,7 @@ bool ValueSet::MouseMove(const MouseEvent& rMouseEvent) { // because of SelectionMode if ((GetStyle() & WB_MENUSTYLEVALUESET) || (GetStyle() & WB_FLATVALUESET)) - ImplTracking(rMouseEvent.GetPosPixel()); + ImplTracking(rMouseEvent.IsLeaveWindow(), rMouseEvent.GetPosPixel()); return CustomWidgetController::MouseMove(rMouseEvent); } |