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', '-');