From: Juergen Spitzmueller Date: Tue, 28 Dec 2021 08:42:31 +0000 (+0100) Subject: Style X-Git-Tag: 2.4-beta2~963 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d1761d765295f50207dc132465ed6a5b3daa6cdf;p=lyx.git Style --- diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp index f180b9a493..96ec13b954 100644 --- a/src/mathed/InsetMathGrid.cpp +++ b/src/mathed/InsetMathGrid.cpp @@ -1251,8 +1251,8 @@ void InsetMathGrid::write(TeXMathStream & os, // As of 2018 (with amendment in LaTeX 2021/06), // \\ is a robust command and its protection // is no longer necessary - bool const fragile = LaTeXFeatures::isAvailable("LaTeX-2021/06/01") ? - false : os.fragile(); + bool const fragile = os.fragile() + && !LaTeXFeatures::isAvailable("LaTeX-2021/06/01"); for (row_type row = beg_row; row < end_row; ++row) { os << verboseHLine(rowinfo_[row].lines); // don't write & and empty cells at end of line,