commit 935442aaba08136fa5bd8c7407c46951d0e9d084
Author: Richard Heck <rgh...@lyx.org>
Date:   Tue Apr 3 18:38:46 2018 -0400

    Fix bug #11102.
    
    Ignore deleted material when generating a proposed label.
    
    (cherry picked from commit d9ebf6e2c75eca0f192fef0b7d822644e3b62e64)
---
 src/Text.cpp |    2 +-
 status.23x   |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/Text.cpp b/src/Text.cpp
index d5d729a..ed3650b 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -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', '-');
diff --git a/status.23x b/status.23x
index 4513697..9141412 100644
--- a/status.23x
+++ b/status.23x
@@ -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
 

Reply via email to