diff options
author | Philippe Jung <phil.jung@free.fr> | 2015-06-09 16:01:54 +0200 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-02-06 00:03:50 -0500 |
commit | 918c516fae4523cc62a91d7a5f8eaea2dd36dc8a (patch) | |
tree | 92ea0e62ef02ef4e4f41db82bdcd90f799dc3dda /vcl | |
parent | c93f562242f31a9126eae6cba527ab42359d2dcf (diff) |
Last item of menu with title cannot be hilighted
Seing the fix, it probably also impacts scrolled floating menus.
Change-Id: Ia740573c3ed54cf01a57575a2ca00d49165be28d
Reviewed-on: https://gerrit.libreoffice.org/16187
Reviewed-by: Philippe Jung <phil.jung@free.fr>
Tested-by: Philippe Jung <phil.jung@free.fr>
(cherry picked from 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 400f88c5e912..092fb44c1981 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(); |