[LyX/master] Fix bug #12934

Richard Kimberly Heck rikiheck at lyx.org
Sat Jun 1 17:05:36 UTC 2024


commit 6484dce51b46f8fc0134a7532efb08401bba3c53
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Sat Jun 1 13:05:12 2024 -0400

    Fix bug #12934
---
 src/Buffer.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 6dea0a44e7..0f7560c8e4 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -5240,8 +5240,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.


More information about the lyx-cvs mailing list