]> git.lyx.org Git - features.git/commitdiff
Fixed the selection problem for insettext/insettabular John reported
authorJürgen Vigna <jug@sad.it>
Thu, 29 Aug 2002 08:04:22 +0000 (08:04 +0000)
committerJürgen Vigna <jug@sad.it>
Thu, 29 Aug 2002 08:04:22 +0000 (08:04 +0000)
(as promised ;)

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

po/POTFILES.in
src/insets/ChangeLog
src/insets/insettabular.C

index 0736ed59c6c5fdd18cace8a490e7fb0e134d63d6..ca6ca71010c61182409b0fd7fcb5b657ebb642e5 100644 (file)
@@ -8,6 +8,7 @@ src/converter.C
 src/CutAndPaste.C
 src/debug.C
 src/exporter.C
+src/ext_l10n.h
 src/FloatList.C
 src/frontends/controllers/biblio.C
 src/frontends/controllers/ButtonController.h
index bd0f37c9543556d1d20c139d4f72f47fd45be1ef..c56254e5c099d59ed7665a3638fd9e0c9519f1ae 100644 (file)
@@ -1,3 +1,14 @@
+2002-08-29  Juergen Vigna  <jug@sad.it>
+
+       * insettabular.C (lfunMousePress): Pay attention where you set
+       the x/y values as they depend on which inset in the tabular is
+       actually locked. So you surely have to reset them if you (un)lock
+       a inset!
+
+       * insettext.C (localDispatch): moved the MOUSE-events up to the
+       start of the function (Well Andre it would be a lot better if you
+       would use the ChangeLog!)
+
 2002-08-28  Rob Lahaye  <lahaye@snu.ac.kr>
 
        * insetgraphicsParams.C: remove local displayTranslator and use
index 2b05f38e9508fef22e16dfc64ac281d73a867744..b37fd8a857a62430c57aea91b68b6e0d8920fbdb 100644 (file)
@@ -810,12 +810,11 @@ void InsetTabular::lfunMousePress(FuncRequest const & cmd)
 
        bool const inset_hit = insetHit(bv, cmd.x, cmd.y);
 
-       FuncRequest cmd1 = cmd;
-       cmd1.x -= inset_x;
-       cmd1.y -= inset_y;
-
        if ((ocell == actcell) && the_locking_inset && inset_hit) {
                resetPos(bv);
+               FuncRequest cmd1 = cmd;
+               cmd1.x -= inset_x;
+               cmd1.y -= inset_y;
                the_locking_inset->localDispatch(cmd1);
                return;
        }
@@ -838,6 +837,9 @@ void InsetTabular::lfunMousePress(FuncRequest const & cmd)
                        lyxerr[Debug::INSETS] << "Cannot lock inset" << endl;
                        return;
                }
+               FuncRequest cmd1 = cmd;
+               cmd1.x -= inset_x;
+               cmd1.y -= inset_y;
                the_locking_inset->localDispatch(cmd1);
                return;
        }