From 776e66688f65955b6baa556f83ca34e13c7484ff Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Wed, 12 Dec 2012 03:43:53 -0500 Subject: [PATCH] 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. --- src/insets/InsetTabular.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 6bdf72b046..532773ea51 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -4095,7 +4095,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: @@ -4133,7 +4133,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: { -- 2.39.2