From 935442aaba08136fa5bd8c7407c46951d0e9d084 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 3 Apr 2018 18:38:46 -0400 Subject: [PATCH] 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 deletion(-) diff --git a/src/Text.cpp b/src/Text.cpp index d5d729a277..ed3650b8df 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 45136970ee..9141412d92 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 -- 2.39.5