mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-27 02:19:10 +00:00
Fix a selection bug in InsetTabular
If you have a selection across cells in tabular, moving the cursor vertically up or down (e.g. LFUN_UP) now removes the drawn selection. Before, the selection was set to false but it was not repainted. (cherry picked from commit 776e66688f65955b6baa556f83ca34e13c7484ff)
This commit is contained in:
parent
43f9aff71a
commit
cbaaa09c7b
@ -4120,7 +4120,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
cur.setCurrentFont();
|
||||
return;
|
||||
}
|
||||
cur.screenUpdateFlags(Update::FitCursor);
|
||||
cur.screenUpdateFlags(Update::Force | Update::FitCursor);
|
||||
break;
|
||||
|
||||
case LFUN_UP_SELECT:
|
||||
@ -4158,7 +4158,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
cur.setCurrentFont();
|
||||
return;
|
||||
}
|
||||
cur.screenUpdateFlags(Update::FitCursor);
|
||||
cur.screenUpdateFlags(Update::Force | Update::FitCursor);
|
||||
break;
|
||||
|
||||
// case LFUN_SCREEN_DOWN: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user