From: Jean-Marc Lasgouttes Date: Tue, 7 Nov 2023 14:43:57 +0000 (+0100) Subject: Update math macro display when entering from above/balow X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9c3d9cded0b7f40b449bdfab0200d7fb27e1b1a8;p=features.git 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. --- diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 8cd445bcb7..ca13bda6e9 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; }