Fixed the selection problem for insettext/insettabular John reported

(as promised ;)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5162 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-08-29 08:04:22 +00:00
parent 744bb59dfe
commit b093dab69b
3 changed files with 18 additions and 4 deletions

View 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

View 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

View 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;
}