]> 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 08:43:53 +0000 (03:43 -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.

src/insets/InsetTabular.cpp

index 6bdf72b04600a5116b36744ffd2532bb3637bfaf..532773ea51aa12438513a8a7e2138c671acba22d 100644 (file)
@@ -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: {