commit d1761d765295f50207dc132465ed6a5b3daa6cdf
Author: Juergen Spitzmueller <[email protected]>
Date:   Tue Dec 28 09:42:31 2021 +0100

    Style
---
 src/mathed/InsetMathGrid.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp
index f180b9a..96ec13b 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,
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to