Alfredo's double-dialog fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5865 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-12-18 22:11:07 +00:00
parent f0ce68912c
commit 2421c85ca2
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-12-17 Alfredo Braunstein <abraunst@libero.it>
* insettext.C (lfunMouseRelease): hackish solution to the "double
menu open" bug
2002-12-08 Lars Gullik Bjønnes <larsbj@gullik.net>
* insetfloat.C (addToToc): use the floats name not its type

View File

@ -1124,7 +1124,9 @@ bool InsetText::lfunMouseRelease(FuncRequest const & cmd)
inset_y = ciy(bv) + drawTextYOffset;
cmd1.x = cmd.x - inset_x;
cmd1.y = cmd.x - inset_y;
ret = inset->localDispatch(cmd1);
// note that we should do ret = inset->localDispatch(cmd1)
// and fix this instead (Alfredo);
ret = true;
inset->edit(bv, cmd1.x, cmd1.y, cmd.button());
}
updateLocal(bv, CURSOR_PAR, false);