[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Tue Sep 9 07:06:04 PDT 2014


 sw/source/uibase/utlui/glbltree.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a29ece90621b2fef9126a6e9a976561ce5d1b461
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Sep 9 15:03:37 2014 +0100

    Resolves: fdo#83251 menu on master doc insert disappears
    
    on releaseing mouse button
    
    Change-Id: Ia2f8da6e62d708744707b8187d5961fe12169eb8

diff --git a/sw/source/uibase/utlui/glbltree.cxx b/sw/source/uibase/utlui/glbltree.cxx
index 063c304..83f23c3 100644
--- a/sw/source/uibase/utlui/glbltree.cxx
+++ b/sw/source/uibase/utlui/glbltree.cxx
@@ -396,7 +396,7 @@ void SwGlobalTree::TbxMenuHdl(sal_uInt16 nTbxId, ToolBox* pBox)
         pMenu->EnableItem(CTX_INSERT_FILE,      0 != (nEnableFlags & ENABLE_INSERT_FILE));
         pMenu->EnableItem(CTX_INSERT_NEW_FILE,  0 != (nEnableFlags & ENABLE_INSERT_FILE));
         pMenu->SetSelectHdl(LINK(this, SwGlobalTree, PopupHdl));
-        pMenu->Execute( pBox, pBox->GetItemRect(nTbxId).BottomLeft());
+        pMenu->Execute(pBox, pBox->GetItemRect(nTbxId));
         pMenu.reset();
         pBox->EndSelection();
         pBox->Invalidate();
@@ -411,7 +411,7 @@ void SwGlobalTree::TbxMenuHdl(sal_uInt16 nTbxId, ToolBox* pBox)
         }
         pMenu->EnableItem(CTX_UPDATE_SEL, 0 != (nEnableFlags & ENABLE_UPDATE_SEL));
         pMenu->SetSelectHdl(LINK(this, SwGlobalTree, PopupHdl));
-        pMenu->Execute( pBox, pBox->GetItemRect(nTbxId).BottomLeft());
+        pMenu->Execute(pBox, pBox->GetItemRect(nTbxId));
         pMenu.reset();
         pBox->EndSelection();
         pBox->Invalidate();


More information about the Libreoffice-commits mailing list