mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Do not \cprotect in table cells
This commit is contained in:
parent
677a2c2cd1
commit
88a2414839
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user