]> git.lyx.org Git - lyx.git/commitdiff
Update math macro display when entering from above/balow
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 7 Nov 2023 14:43:57 +0000 (15:43 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 7 Nov 2023 14:46:04 +0000 (15:46 +0100)
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

index 8cd445bcb7b48d4f5af6ea6ace2ea7c308335baa..ca13bda6e990abf710220d3839126288d00330e6 100644 (file)
@@ -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;
        }