Do not add deleted text to inset button label.

Fixes: #10775
(cherry picked from commit 70b0df85c8)
This commit is contained in:
Juergen Spitzmueller 2017-10-22 19:08:10 +02:00
parent 25678dae12
commit d088f7f03f

View File

@ -423,6 +423,8 @@ docstring const InsetCollapsible::getNewLabel(docstring const & l) const
pos_type i = 0;
pos_type j = 0;
for (; i < n && j < p_siz; ++j) {
if (paragraphs().begin()->isDeleted(j))
continue;
if (paragraphs().begin()->isInset(j)) {
if (!paragraphs().begin()->getInset(j)->isChar())
continue;