[Libreoffice-commits] core.git: vcl/source
Xisco Fauli
anistenis at gmail.com
Thu Nov 3 07:59:11 UTC 2016
vcl/source/window/menufloatingwindow.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e4669faa6835796267490efe906f0bd8355f6a50
Author: Xisco Fauli <anistenis at gmail.com>
Date: Fri Sep 2 13:52:23 2016 +0200
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 at libreoffice.org>
Reviewed-by: jan iversen <jani at documentfoundation.org>
diff --git a/vcl/source/window/menufloatingwindow.cxx b/vcl/source/window/menufloatingwindow.cxx
index 643aeb7..83854a6 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();
More information about the Libreoffice-commits
mailing list