* insettabular.C (doDispatch):

do not mark the cursor undispatched after mouse (button 3) press
	(prevents the cursor from leaving the tabular when opening the 	
	dialog).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13907 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2006-05-22 13:13:06 +00:00
parent 31f71bf364
commit e64a71d844
3 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,9 @@
2006-05-22 Jürgen Spitzmüller <j.spitzmueller@gmx.de> 2006-05-22 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* insettabular.C (doDispatch): do not mark the cursor undispatched
after mouse (button 3) press (prevents the cursor from leaving the
tabular when opening the dialog).
* insettabular.C (doDispatch): fix crash due to invalidated * insettabular.C (doDispatch): fix crash due to invalidated
cursor after insertAciiString (bug 2603). cursor after insertAciiString (bug 2603).

View File

@ -473,9 +473,6 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
break; break;
} }
// we'll pop up the table dialog on release
if (cmd.button() == mouse_button::button3)
cur.undispatched();
break; break;
case LFUN_MOUSE_MOTION: case LFUN_MOUSE_MOTION:
@ -493,8 +490,10 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
case LFUN_MOUSE_RELEASE: case LFUN_MOUSE_RELEASE:
//lyxerr << "# InsetTabular::MouseRelease\n" << bvcur << endl; //lyxerr << "# InsetTabular::MouseRelease\n" << bvcur << endl;
if (cmd.button() == mouse_button::button3) if (cmd.button() == mouse_button::button3) {
bvcur.setCursor(cur);
InsetTabularMailer(*this).showDialog(&cur.bv()); InsetTabularMailer(*this).showDialog(&cur.bv());
}
break; break;
case LFUN_CELL_BACKWARD: case LFUN_CELL_BACKWARD:

View File

@ -92,6 +92,9 @@ What's new
- When pasting contents to a tabular with the middle mouse button, the - When pasting contents to a tabular with the middle mouse button, the
language has sometimes be changed. This is fixed now. language has sometimes be changed. This is fixed now.
- Fix unconditional movement of the cursor outside of a tabular when
opening the tabular dialog.
- Text copied from an ERT box has no longer the pseudo "latex" language - Text copied from an ERT box has no longer the pseudo "latex" language
(bug 2476). (bug 2476).