]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #12934
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sat, 1 Jun 2024 17:05:12 +0000 (13:05 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Sat, 1 Jun 2024 17:05:42 +0000 (13:05 -0400)
(cherry picked from commit 6484dce51b46f8fc0134a7532efb08401bba3c53)

src/Buffer.cpp

index 38d236964af0393b0b4b922d8257fb3e03bf23b2..994d5476d5b8d0c68b79751e26d9f0e7903b9c6d 100644 (file)
@@ -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.