]> git.lyx.org Git - lyx.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>
Tue, 22 Oct 2019 16:10:00 +0000 (18:10 +0200)
commitf6282dfec7c7d53fd92d7270f8806a39a9c5d75b
tree0c3e1d4b5b40af35591346e04c29984de75aac83
parentd3fd91566249b722dbc553b921283f2507ce5e17
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.

(cherry picked from commit 44816adce634c8a06c1ff0591adbcf042ec4c072)
src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathGrid.h
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathSplit.cpp
status.23x