mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 05:12:40 +00:00
Fix another selection bug in InsetTabular
Fix #4981: In tabular if a vertical selection is made with the keyboard (e.g. LFUN_UP_SELECT), the selection is drawn if there are two cells selected. Previously, the selection would be drawn only if there were more than two selected.
This commit is contained in:
parent
776e66688f
commit
5cc1adf7c7
@ -4093,6 +4093,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
cur.pit() = cur.lastpit();
|
cur.pit() = cur.lastpit();
|
||||||
cur.pos() = cur.lastpos();
|
cur.pos() = cur.lastpos();
|
||||||
cur.setCurrentFont();
|
cur.setCurrentFont();
|
||||||
|
cur.screenUpdateFlags(Update::Force | Update::FitCursor);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
cur.screenUpdateFlags(Update::Force | Update::FitCursor);
|
cur.screenUpdateFlags(Update::Force | Update::FitCursor);
|
||||||
@ -4131,6 +4132,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
cur.pit() = 0;
|
cur.pit() = 0;
|
||||||
cur.pos() = cur.lastpos();
|
cur.pos() = cur.lastpos();
|
||||||
cur.setCurrentFont();
|
cur.setCurrentFont();
|
||||||
|
cur.screenUpdateFlags(Update::Force | Update::FitCursor);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
cur.screenUpdateFlags(Update::Force | Update::FitCursor);
|
cur.screenUpdateFlags(Update::Force | Update::FitCursor);
|
||||||
|
Loading…
Reference in New Issue
Block a user