From 80a5892049b27226b68a01d3249042f3c3eeeb3e Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Wed, 12 Dec 2012 03:44:17 -0500 Subject: [PATCH] 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. (cherry picked from commit 5cc1adf7c7a348aae4f9471d7edb41c8570311d7) --- src/insets/InsetTabular.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 6115f0a5b1..c740a2fcb8 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -4118,6 +4118,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd) cur.pit() = cur.lastpit(); cur.pos() = cur.lastpos(); cur.setCurrentFont(); + cur.screenUpdateFlags(Update::Force | Update::FitCursor); return; } cur.screenUpdateFlags(Update::Force | Update::FitCursor); @@ -4156,6 +4157,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd) cur.pit() = 0; cur.pos() = cur.lastpos(); cur.setCurrentFont(); + cur.screenUpdateFlags(Update::Force | Update::FitCursor); return; } cur.screenUpdateFlags(Update::Force | Update::FitCursor); -- 2.39.5