diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-09-02 13:52:23 +0200 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-11-03 07:58:45 +0000 |
commit | e4669faa6835796267490efe906f0bd8355f6a50 (patch) | |
tree | 3aa4b5ae3ed2080bd4691e02981a22900cea549f /vcl/source | |
parent | f2bc1a61f6df66848ecb073a97b6b22fa469ef4d (diff) |
tdf#95341: Make last item of menus clickable again
Regression from 4f1dca5083c5a301181786b563b165f19a9dec7f
Change-Id: I7b7f3594499cd049ae59064da244e3f82dff7757
Reviewed-on: https://gerrit.libreoffice.org/28617
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/menufloatingwindow.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/menufloatingwindow.cxx b/vcl/source/window/menufloatingwindow.cxx index 643aeb786ff3..83854a6697fd 100644 --- a/vcl/source/window/menufloatingwindow.cxx +++ b/vcl/source/window/menufloatingwindow.cxx @@ -197,7 +197,7 @@ void MenuFloatingWindow::ImplHighlightItem( const MouseEvent& rMEvt, bool bMBDow long nY = GetInitialItemY(); long nMouseY = rMEvt.GetPosPixel().Y(); Size aOutSz = GetOutputSizePixel(); - if ( ( nMouseY >= nY ) && ( nMouseY < ( aOutSz.Height() - nY ) ) ) + if ( ( nMouseY >= nY ) && ( nMouseY < aOutSz.Height() ) ) { bool bHighlighted = false; size_t nCount = pMenu->pItemList->size(); |