summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorPhilippe Jung <phil.jung@free.fr>2015-06-09 16:01:54 +0200
committerPhilippe Jung <phil.jung@free.fr>2015-06-09 14:37:12 +0000
commit8ced97caa409d6dc8f69230145e9c9f281fb84fe (patch)
tree08ae97da3aaaf7e0dc533dc5592ea26dc2b49b91 /vcl/source
parentf76b2b3b1184383695a35fa104470fa3027e477b (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>
Diffstat (limited to 'vcl/source')
-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 cd92d11f5be4..8af281b47cfc 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();