From: Scott Kostyshak Date: Wed, 12 Dec 2012 08:44:17 +0000 (-0500) Subject: Fix another selection bug in InsetTabular X-Git-Tag: 2.0.6~195 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=80a5892049b27226b68a01d3249042f3c3eeeb3e;p=features.git 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) --- 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);