From: Scott Kostyshak Date: Wed, 12 Dec 2012 08:43:53 +0000 (-0500) Subject: Fix a selection bug in InsetTabular X-Git-Tag: 2.0.6~196 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cbaaa09c7b21b2fae15da28b801e9a906d3f0856;p=features.git 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) --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 768b8cffe8..6115f0a5b1 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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: {