]> git.lyx.org Git - features.git/commitdiff
needsCProtection(): check all insets.
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 15 Apr 2018 10:29:49 +0000 (12:29 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 15 Apr 2018 10:29:49 +0000 (12:29 +0200)
src/Paragraph.cpp

index 50971e3170c408b91e04abd6d0b3f39c02bed5c9..9dfd0938f437e26c84c692aea22e93981a6577ca 100644 (file)
@@ -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;
 }