From: Jürgen Vigna Date: Wed, 24 Apr 2002 13:52:04 +0000 (+0000) Subject: Forgot about this the Panel should NEVER be opened in a Press event ONLY X-Git-Tag: 1.6.10~19352 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b83dce0da32a0abe70afbd388d0782084e991969;p=features.git Forgot about this the Panel should NEVER be opened in a Press event ONLY in the Release event! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4054 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 3fb389e8a7..9eed415a68 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -3,6 +3,8 @@ * formulabase.C (insetButtonPress): set the mathcursor in case we don't have one. This happens when clicking on a non locked mathed inset with any button != 1. + (insetButtonPress): Forgot about this the Panel should NEVER be + opened in a Press event ONLY in the Release event! 2002-04-22 Jean-Marc Lasgouttes diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index 27e121cbb6..241763bc7d 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -342,10 +342,13 @@ void InsetFormulaBase::insetButtonPress(BufferView * bv, mathcursor->selClear(); mathcursor->setPos(x + xo_, y + yo_); } +#if 0 +#warning Never launch a Dialog on "Press" event ONLY on "Release" event! if (button == 3) { // launch math panel for right mouse button bv->owner()->getDialogs()->showMathPanel(); } +#endif #endif bv->updateInset(this, false); }