This commit is contained in:
Juergen Spitzmueller 2018-04-15 12:37:41 +02:00
parent b03c826f27
commit 6f2eda8a0c

View File

@ -3401,9 +3401,8 @@ 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))
if (getInset(i)->needsCProtection())
return true;
if (isInset(i) && getInset(i)->needsCProtection())
return true;
return false;
}