]> git.lyx.org Git - lyx.git/commitdiff
Do not add deleted text to inset button label.
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 22 Oct 2017 17:08:10 +0000 (19:08 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 23 Oct 2017 06:26:01 +0000 (08:26 +0200)
Fixes: #10775
(cherry picked from commit 70b0df85c80120e0a0eeaa9e3fec721d91d53849)

src/insets/InsetCollapsible.cpp

index 11c9e2a43d42de598cbd0897ef119adf3db2edd7..c429c51b417c2ed34999f876ff78f1503c1ca1ce 100644 (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;