commit c082c3a0f6ac496a89990ab724f19b37aa9bc70d
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Sun Apr 15 12:29:49 2018 +0200

    needsCProtection(): check all insets.
---
 src/Paragraph.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 50971e3..9dfd093 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;
 }

Reply via email to