mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Simplify
This commit is contained in:
parent
b03c826f27
commit
6f2eda8a0c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user