commit d2f05b9e6f40b192bd497b0b2138a3a626e18033
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Fri Nov 4 21:46:32 2022 +0100

    When Inset::dispatch is called from TOC, process screen flags
    
    This is needed because we are not using the complete dispatch
    machinery here.
    
    Part of bug #4582.
---
 src/insets/Inset.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp
index 3b00c0c..acd8ab2 100644
--- a/src/insets/Inset.cpp
+++ b/src/insets/Inset.cpp
@@ -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());
 }
 
 
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to