Do not add deleted text to inset button label.

Fixes: #10775
This commit is contained in:
Juergen Spitzmueller 2017-10-22 19:08:10 +02:00
parent 7f23ca912c
commit 70b0df85c8

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;