]> git.lyx.org Git - lyx.git/commitdiff
Style
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 28 Dec 2021 08:42:31 +0000 (09:42 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 28 Dec 2021 08:42:31 +0000 (09:42 +0100)
src/mathed/InsetMathGrid.cpp

index f180b9a49300b84317d9b9511ff411c8999a4d98..96ec13b954b67ee9806a37e08cc0d4aba7491e6a 100644 (file)
@@ -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,