summaryrefslogtreecommitdiff
path: root/starmath/source/edit.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/edit.cxx')
-rw-r--r--starmath/source/edit.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 2588e9f60325..e8e79a24e12c 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -266,10 +266,9 @@ bool SmEditTextWindow::Command(const CommandEvent& rCEvt)
if (rCEvt.GetCommand() == CommandEventId::ContextMenu)
{
- // purely for "ExecutePopup" taking a vcl::Window and
- // we assume SmEditTextWindow 0,0 is at SmEditWindow 0,0
ReleaseMouse();
- mrEditWindow.GetCmdBox().Command(rCEvt);
+ SmCmdBoxWindow& rCmdBox = mrEditWindow.GetCmdBox();
+ rCmdBox.ShowContextMenu(rCmdBox.WidgetToWindowPos(*GetDrawingArea(), rCEvt.GetMousePosPixel()));
GrabFocus();
return true;
}