[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - vcl/source

Philippe Jung phil.jung at free.fr
Tue Jun 9 07:36:24 PDT 2015


 vcl/source/window/menufloatingwindow.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ab78b52b249bfd32892786c51d93bfd61a4db371
Author: Philippe Jung <phil.jung at free.fr>
Date:   Tue Jun 9 16:01:54 2015 +0200

    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/16188
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/vcl/source/window/menufloatingwindow.cxx b/vcl/source/window/menufloatingwindow.cxx
index abebd19..8127536 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();


More information about the Libreoffice-commits mailing list