summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLászló Németh <laszlo.nemeth@collabora.com>2015-09-30 22:29:46 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-10-08 07:19:46 +0000
commit48a7d0492dbae60d644dd7be9b1b0826fdf36f63 (patch)
treec745b910c2ac7381168dbca106187b4adca54b1d
parent23c217590e903f243e206e2a4372448c9eeaff0c (diff)
tdf#92702 Unable to select menu items that were initially off-screen
Revert "Last item of menu with title cannot be hilighted" This reverts commit 8ced97caa409d6dc8f69230145e9c9f281fb84fe. (Cherry-picked from the commit 4f1dca5083c5a301181786b563b165f19a9dec7f) Change-Id: Ic8c2195d4791900ada0296215c335b9dc39db220 Reviewed-on: https://gerrit.libreoffice.org/19048 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--vcl/source/window/menufloatingwindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/menufloatingwindow.cxx b/vcl/source/window/menufloatingwindow.cxx
index 972ec16044f6..5ff6cc225c52 100644
--- a/vcl/source/window/menufloatingwindow.cxx
+++ b/vcl/source/window/menufloatingwindow.cxx
@@ -190,7 +190,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() - nY ) ) )
{
bool bHighlighted = false;
size_t nCount = pMenu->pItemList->size();