]> git.lyx.org Git - features.git/commitdiff
Fix bug #11102.
authorRichard Heck <rgheck@lyx.org>
Tue, 3 Apr 2018 22:38:46 +0000 (18:38 -0400)
committerRichard Heck <rgheck@lyx.org>
Tue, 3 Apr 2018 22:41:28 +0000 (18:41 -0400)
Ignore deleted material when generating a proposed label.

(cherry picked from commit d9ebf6e2c75eca0f192fef0b7d822644e3b62e64)

src/Text.cpp
status.23x

index d5d729a2770935d2722d756ef0438594cf9c3b15..ed3650b8dff5604157dee49a012c0c5760377aa9 100644 (file)
@@ -1977,7 +1977,7 @@ docstring Text::getPossibleLabel(Cursor const & cur) const
        Layout const * layout = &(pars_[pit].layout());
 
        docstring text;
-       docstring par_text = pars_[pit].asString();
+       docstring par_text = pars_[pit].asString(AS_STR_SKIPDELETE);
 
        // The return string of math matrices might contain linebreaks
        par_text = subst(par_text, '\n', '-');
index 45136970ee4766648fc3f2fd5eb0e672f530c6e2..9141412d9209cb7a621e9521a4791bfe0696980f 100644 (file)
@@ -134,6 +134,8 @@ What's new
 - Assure that the External Inset dialog is opened at first tab for
   new insets (bug 11081).
 
+- Ignore deleted material when generating a proposed label (bug 11102).
+
 
 * INTERNALS