]> 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>
Thu, 18 Jun 2020 13:48:45 +0000 (15:48 +0200)
commit5d8d14d76489125b2775ecdb4c43cc2121e3761d
treeb6d44ac76d2e292ac8b9deb57e364f8ea9e71c80
parent4915c69070290b2264eadc5f0f93785038d6df1e
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