]> git.lyx.org Git - features.git/commitdiff
Fix equation numbers after row operation (#12665)
authorScott Kostyshak <skostysh@lyx.org>
Wed, 22 Feb 2023 16:12:56 +0000 (11:12 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Wed, 22 Feb 2023 16:12:56 +0000 (11:12 -0500)
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

index 0061bdd71595c1582f162379b40a478a3291b1ee..65cd6621be475ee8d13826b6d551bf6518c3a332 100644 (file)
@@ -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;