diff options
author | László Németh <laszlo.nemeth@collabora.com> | 2015-09-30 22:29:46 +0200 |
---|---|---|
committer | László Németh <laszlo.nemeth@collabora.com> | 2015-09-30 22:30:51 +0200 |
commit | 4f1dca5083c5a301181786b563b165f19a9dec7f (patch) | |
tree | e17cceacca111bc3b71ad99db4bac3e3a7b8f609 /vcl | |
parent | 592b43acb6b88bf2b138692fd6078f84d709f457 (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.
Diffstat (limited to 'vcl')
-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 1a2fb4c50351..0fff6618d878 100644 --- a/vcl/source/window/menufloatingwindow.cxx +++ b/vcl/source/window/menufloatingwindow.cxx @@ -191,7 +191,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(); |