]> git.lyx.org Git - features.git/blobdiff - src/Paragraph.cpp
\protect xymatrix in fragile context
[features.git] / src / Paragraph.cpp
index 6b960cd0c070dd3d9bede5bea624ccc4904f5a21..369bda0d7e80e39e4cc47dc55276a3309071618d 100644 (file)
@@ -2269,6 +2269,12 @@ bool Paragraph::isPassThru() const
 }
 
 
+bool Paragraph::parbreakIsNewline() const
+{
+       return inInset().getLayout().parbreakIsNewline() || d->layout_->parbreak_is_newline;
+}
+
+
 bool Paragraph::isPartOfTextSequence() const
 {
        for (pos_type i = 0; i < size(); ++i) {
@@ -4119,10 +4125,7 @@ bool Paragraph::needsCProtection(bool const fragile) const
                if (!im || im->cell(0).empty())
                        continue;
                switch(im->cell(0)[0]->lyxCode()) {
-               case MATH_AMSARRAY_CODE:
-               case MATH_SUBSTACK_CODE:
                case MATH_ENV_CODE:
-               case MATH_XYMATRIX_CODE:
                        // these need cprotection
                        return true;
                default: