commit e5d010a97a00aa2a837eca75bd80fa5a1b8437f2
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 ed83b1f10e..eba314e300 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

Reply via email to