summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-09 15:03:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-09 15:05:17 +0100
commita29ece90621b2fef9126a6e9a976561ce5d1b461 (patch)
tree2fb167f4a9abfa9361b97237303bddd7d13b0508
parent83c5102abfe4d3d003ffe68878beb29a29fe89b9 (diff)
Resolves: fdo#83251 menu on master doc insert disappears
on releaseing mouse button Change-Id: Ia2f8da6e62d708744707b8187d5961fe12169eb8
-rw-r--r--sw/source/uibase/utlui/glbltree.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/utlui/glbltree.cxx b/sw/source/uibase/utlui/glbltree.cxx
index 063c304301aa..83f23c3fbf9e 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();