From: Scott Kostyshak Date: Wed, 22 Feb 2023 16:12:56 +0000 (-0500) Subject: Fix equation numbers after row operation (#12665) X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=83af3dfd2969e6dbe2b515aabfe5cf71c64cf6a8;p=features.git 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. --- 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;