]> git.lyx.org Git - features.git/commitdiff
Fixed calling edit off subinset on a ButtonPress event (fix #214).
authorJürgen Vigna <jug@sad.it>
Tue, 5 Mar 2002 11:51:07 +0000 (11:51 +0000)
committerJürgen Vigna <jug@sad.it>
Tue, 5 Mar 2002 11:51:07 +0000 (11:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3663 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insettabular.C
src/insets/insettext.C

index 2f11c195a73e96a74833294a852fc8e742fcb308..86b6be23924d512c501a72378d30897901f4dea8 100644 (file)
@@ -1,3 +1,10 @@
+2002-03-05  Juergen Vigna  <jug@sad.it>
+
+       * insettext.C (insetButtonPress): don't call exit on a InsetButtonPress
+       only that one in the inset. Should be enough.
+
+       * insettabular.C (insetButtonPress): don't hit a sub inset 2 times.
+
 2002-03-04  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * insettext.C (clear): a gross hack to set layout on a newly
index 97503089c4d04a65f5cb2c9a73e8972e1fff7ed1..4c8e6014b3938b973202d6fa6eb8520bd94911ca 100644 (file)
@@ -800,7 +800,9 @@ void InsetTabular::insetButtonPress(BufferView * bv, int x, int y, int button)
                return;
        }
        if (inset_hit && bv->theLockingInset()) {
-               if (activateCellInsetAbs(bv, x, y, button))
+               // only activate the Inset so that no internal inset is hit
+               // by this call. It should be only hit by the insetButtonPress call.
+               if (activateCellInsetAbs(bv, 0, 0, 0))
                        the_locking_inset->insetButtonPress(bv,
                                                            x - inset_x,
                                                            y - inset_y,
index c1322162454ac6d4bdcbad219d04e1b029df3b44..8396845fed5523c6af58afdaa22cb1d36a9c984d 100644 (file)
@@ -924,7 +924,7 @@ void InsetText::insetButtonPress(BufferView * bv, int x, int y, int button)
                        the_locking_inset = 0;
                        inset->insetButtonPress(bv, x - inset_x,
                                                y - inset_y, button);
-                       inset->edit(bv, x - inset_x, y - inset_y, button);
+//                     inset->edit(bv, x - inset_x, y - inset_y, button);
                        if (the_locking_inset)
                                updateLocal(bv, CURSOR, false);
                        no_selection = false;