]> git.lyx.org Git - features.git/commitdiff
When Inset::dispatch is called from TOC, process screen flags
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 4 Nov 2022 20:46:32 +0000 (21:46 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 4 Nov 2022 20:46:32 +0000 (21:46 +0100)
This is needed because we are not using the complete dispatch
machinery here.

Part of bug #4582.

src/insets/Inset.cpp

index 3b00c0caa2b9fd0abcbe89d3c0c86cf67e37b62b..acd8ab2cf24a11b8a28e8103d066a6fb32e5da51 100644 (file)
@@ -352,6 +352,8 @@ void Inset::dispatch(Cursor & cur, FuncRequest & cmd)
        cur.screenUpdateFlags(Update::Force | Update::FitCursor);
        cur.dispatched();
        doDispatch(cur, cmd);
+       if (cmd.origin() == FuncRequest::TOC)
+               cur.bv().processUpdateFlags(cur.result().screenUpdate());
 }