From 33024d85e32544a3f70bcfefda86467c0bdc4181 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 9 Apr 2002 14:45:52 +0000 Subject: [PATCH] Nobody noticed that right click on math insets did not pop up the panel anymore? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3959 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/formulabase.C | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index 401dc92bd9..8b32f3222a 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -269,14 +269,21 @@ void InsetFormulaBase::updateLocal(BufferView * bv, bool dirty) bool InsetFormulaBase::insetButtonRelease(BufferView * bv, - int /*x*/, int /*y*/, int /*button*/) + int /*x*/, int /*y*/, int button) { //lyxerr << "insetButtonRelease: " << x << " " << y << "\n"; + if (!mathcursor) return false; hideInsetCursor(bv); showInsetCursor(bv); bv->updateInset(this, false); + + if (button == 3) { + // launch math panel for right mouse button + bv->owner()->getDialogs()->showMathPanel(); + return true; + } return false; } -- 2.39.2