Fix some incorrect middle button paste behavior. A better fix is due after 1.5.1.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19297 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-08-03 21:53:24 +00:00
parent c83c5b0510
commit 6a4b38c97d
2 changed files with 6 additions and 0 deletions

View File

@ -3189,6 +3189,9 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
case LFUN_MOUSE_PRESS:
//lyxerr << "# InsetTabular::MousePress\n" << cur.bv().cursor() << endl;
// FIXME: the following should be replaced by a better fix
// that is already used for plain text (Text3.cpp).
cap::saveSelection(bvcur);
if (cmd.button() == mouse_button::button1
|| (cmd.button() == mouse_button::button3

View File

@ -1153,6 +1153,9 @@ void InsetMathNest::lfunMousePress(Cursor & cur, FuncRequest & cmd)
{
//lyxerr << "## lfunMousePress: buttons: " << cmd.button() << endl;
BufferView & bv = cur.bv();
// FIXME: the following should be replaced by a better fix
// that is already used for plain text (Text3.cpp).
cap::saveSelection(bv.cursor());
if (cmd.button() == mouse_button::button1) {
//lyxerr << "## lfunMousePress: setting cursor to: " << cur << endl;
bv.mouseSetCursor(cur);