]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Const.
[lyx.git] / src / Paragraph.cpp
index 4bd483e44d3ccf23962b1549ff85c92b2aed22fc..dc41fb9e965a48d7784f21333296595a54279ae5 100644 (file)
@@ -3475,7 +3475,7 @@ bool Paragraph::needsCProtection() const
        // now check whether we have insets that need cprotection
        pos_type size = d->text_.size();
        for (pos_type i = 0; i < size; ++i)
-               if (isInset(i) && getInset(i)->needsCProtection())
+               if (isInset(i) && getInset(i)->needsCProtection(maintext))
                        return true;
 
        return false;