From c082c3a0f6ac496a89990ab724f19b37aa9bc70d Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 15 Apr 2018 12:29:49 +0200 Subject: [PATCH] needsCProtection(): check all insets. --- src/Paragraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5