From 83af3dfd2969e6dbe2b515aabfe5cf71c64cf6a8 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Wed, 22 Feb 2023 11:12:56 -0500 Subject: [PATCH] Fix equation numbers after row operation (#12665) After removing/adding rows, the corresponding equation numbers in the LyX display were not updated (although if you clicked outside the math inset they were). Now they are updated immediately after the operation. --- src/mathed/InsetMathGrid.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp index 0061bdd715..65cd6621be 100644 --- a/src/mathed/InsetMathGrid.cpp +++ b/src/mathed/InsetMathGrid.cpp @@ -1550,6 +1550,7 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest & cmd) cur.undispatched(); break; } + cur.forceBufferUpdate(); // perhaps this should be FINISHED_BACKWARD -- just for clarity? //lyxerr << "returning FINISHED_LEFT" << endl; break; -- 2.39.5