]> git.lyx.org Git - features.git/commitdiff
Fix a selection bug in InsetTabular
authorScott Kostyshak <skostysh@lyx.org>
Wed, 12 Dec 2012 08:43:53 +0000 (03:43 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Wed, 12 Dec 2012 20:52:28 +0000 (15:52 -0500)
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)

src/insets/InsetTabular.cpp

index 768b8cffe8a17a1d7ddfe6e54333af386c0df8ab..6115f0a5b1c059806042a3cf599f7082e500c2aa 100644 (file)
@@ -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: {