commit 2d94e9751c3ae55194f9cfb37dc53974e7868fd6
Author: Richard Kimberly Heck <[email protected]>
Date: Wed Oct 14 20:29:36 2026 -0400
Use default branch label if no labelstring is given in InsetLayout.
---
src/insets/InsetBranch.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/insets/InsetBranch.cpp b/src/insets/InsetBranch.cpp
index 3cd52a5055..9fb6401488 100644
--- a/src/insets/InsetBranch.cpp
+++ b/src/insets/InsetBranch.cpp
@@ -124,7 +124,7 @@ docstring const InsetBranch::buttonLabel(BufferView const
&) const
if (has_layout) {
InsetLayout const & il = getLayout();
docstring const & label_string = il.labelstring();
- if (!label_string.empty())
+ if (!label_string.empty() && label_string !=
from_ascii("UNDEFINED"))
return symb + inv_symb + label_string;
}
docstring s;
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs