From: Juergen Spitzmueller Date: Sun, 15 Apr 2018 10:29:49 +0000 (+0200) Subject: needsCProtection(): check all insets. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3627 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c082c3a0f6ac496a89990ab724f19b37aa9bc70d;p=features.git needsCProtection(): check all insets. --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 50971e3170..9dfd0938f4 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -3402,7 +3402,8 @@ bool Paragraph::needsCProtection() const pos_type size = d->text_.size(); for (pos_type i = 0; i < size; ++i) if (isInset(i)) - return getInset(i)->needsCProtection(); + if (getInset(i)->needsCProtection()) + return true; return false; }