]> git.lyx.org Git - features.git/commitdiff
Forgot about this the Panel should NEVER be opened in a Press event ONLY
authorJürgen Vigna <jug@sad.it>
Wed, 24 Apr 2002 13:52:04 +0000 (13:52 +0000)
committerJürgen Vigna <jug@sad.it>
Wed, 24 Apr 2002 13:52:04 +0000 (13:52 +0000)
in the Release event!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4054 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/formulabase.C

index 3fb389e8a755ce1ceb5a241303002375c65eb328..9eed415a689c44583cf051792a8e067f964f8a7f 100644 (file)
@@ -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  <lasgouttes@freesurf.fr>
 
index 27e121cbb6a9775da675d19e66b79cd6166943a8..241763bc7d4b410635a00f2229fda292a57bcffb 100644 (file)
@@ -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);
 }