From: Juergen Spitzmueller Date: Fri, 1 Mar 2024 06:18:28 +0000 (+0100) Subject: Do not \cprotect in table cells X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=88a2414839f7dd29ae086482612c001b72a61ebe;p=features.git Do not \cprotect in table cells --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 1d4861e64e..49713a8b9a 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -4284,9 +4284,10 @@ bool Paragraph::isHardHyphenOrApostrophe(pos_type pos) const bool Paragraph::needsCProtection(bool const fragile) const { // first check the layout of the paragraph, but only in insets + // and not in tables InsetText const * textinset = inInset().asInsetText(); bool const maintext = textinset - ? textinset->text().isMainText() + ? textinset->text().isMainText() || inInset().lyxCode() == CELL_CODE : false; if (!maintext && layout().needcprotect) {