From d9ebf6e2c75eca0f192fef0b7d822644e3b62e64 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. --- src/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text.cpp b/src/Text.cpp index 1321a534f3..3de796442c 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -1979,7 +1979,7 @@ docstring Text::getPossibleLabel(DocIterator 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', '-'); -- 2.39.2