commit 9c3d9cded0b7f40b449bdfab0200d7fb27e1b1a8
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Tue Nov 7 15:43:57 2023 +0100

    Update math macro display when entering from above/balow
    
    This change forces metrics computation in all cases when cursor enters
    a math inset from above/below, but I do not have a better idea right now.
    
    Fixes bug #12952.
---
 src/Cursor.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/Cursor.cpp b/src/Cursor.cpp
index 8cd445b..ca13bda 100644
--- a/src/Cursor.cpp
+++ b/src/Cursor.cpp
@@ -2007,6 +2007,8 @@ bool Cursor::upDownInMath(bool up)
                // try to find best position within this inset
                if (!selection())
                        setCursor(bruteFind(*this, xo, yo));
+               // FIXME : this is actually only needed for InsetMathMacro (bug 
#12952).
+               screenUpdateFlags(Update::SinglePar);
                return true;
        }
 
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to