From: Richard Kimberly Heck Date: Sat, 1 Jun 2024 17:05:12 +0000 (-0400) Subject: Fix bug #12934 X-Git-Tag: 2.4.1~72 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c97375e46d15ab3c9b864b2ebcae821c0b3b09d8;p=lyx.git Fix bug #12934 (cherry picked from commit 6484dce51b46f8fc0134a7532efb08401bba3c53) --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 38d236964a..994d5476d5 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -5238,8 +5238,7 @@ void Buffer::Impl::setLabel(ParIterator & it, UpdateType utype) const par.itemdepth = getItemDepth(it); if (layout.margintype == MARGIN_MANUAL) { - if (par.params().labelWidthString().empty()) - par.params().labelWidthString(par.expandLabel(layout, bp)); + // nothing to do: empty label width string is fine. } else if (layout.latextype == LATEX_BIB_ENVIRONMENT) { // we do not need to do anything here, since the empty case is // handled during export.