]> git.lyx.org Git - features.git/commit
Be careful before using buffer parameters in colAlign
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 20 Oct 2019 18:50:23 +0000 (20:50 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 21 Oct 2019 15:02:39 +0000 (17:02 +0200)
commit44816adce634c8a06c1ff0591adbcf042ec4c072
treef446e915b356ec71c0f6f1a01d55924a3348b610
parent273d257f2a07dc1ef7942889649f47a97373f2a1
Be careful before using buffer parameters in colAlign

Make InsetGrid::colAlign a normal method and make it check whether
buffer is valid before using it. This avoids crashes as we have seen
in 2.3.3 (see e.g. #11686).

There is still an assertion so that failure is noticeable before release.
src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathGrid.h
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathSplit.cpp