summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/control/imivctl1.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/vcl/source/control/imivctl1.cxx b/vcl/source/control/imivctl1.cxx
index ed4c2faa8abe..8a6ace9c6adb 100644
--- a/vcl/source/control/imivctl1.cxx
+++ b/vcl/source/control/imivctl1.cxx
@@ -494,8 +494,12 @@ bool SvxIconChoiceCtrl_Impl::MouseMove( const MouseEvent& rMEvt )
if( pView->IsTracking() )
return false;
- const Point aDocPos(pView->PixelToLogic(rMEvt.GetPosPixel()));
- SvxIconChoiceCtrlEntry* pEntry = GetEntry(aDocPos);
+ SvxIconChoiceCtrlEntry* pEntry = nullptr;
+ if (!rMEvt.IsLeaveWindow())
+ {
+ const Point aDocPos(pView->PixelToLogic(rMEvt.GetPosPixel()));
+ pEntry = GetEntry(aDocPos);
+ }
SetEntryHighlightFrame(pEntry);
return true;
}