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:
Scott Kostyshak 2012-12-12 03:44:17 -05:00
parent 776e66688f
commit 5cc1adf7c7

View File

@ -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);