needsCProtection(): check all insets.

This commit is contained in:
Juergen Spitzmueller 2018-04-15 12:29:49 +02:00
parent 52d7322d92
commit c082c3a0f6

View 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;
}