commit 28e8bf742c89b2e4e1850f6d763c13d627a7667e
Author: Richard Kimberly Heck <[email protected]>
Date:   Thu Nov 16 14:03:34 2023 -0500

    Fix layout names for branches.
---
 src/insets/InsetBranch.cpp |    8 ++++++++
 src/insets/InsetBranch.h   |    2 +-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetBranch.cpp b/src/insets/InsetBranch.cpp
index 5058718..af4140b 100644
--- a/src/insets/InsetBranch.cpp
+++ b/src/insets/InsetBranch.cpp
@@ -338,6 +338,14 @@ string InsetBranch::contextMenuName() const
 }
 
 
+docstring InsetBranch::layoutName() const
+{
+       docstring const name = support::subst(branch(), '_', ' ');
+       return from_ascii("Branch:") + name;
+}
+
+
+
 bool InsetBranch::isMacroScope() const
 {
        // Its own scope if not selected by buffer
diff --git a/src/insets/InsetBranch.h b/src/insets/InsetBranch.h
index 16e5524..e2b2958 100644
--- a/src/insets/InsetBranch.h
+++ b/src/insets/InsetBranch.h
@@ -114,7 +114,7 @@ private:
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd) override;
        ///
-       docstring layoutName() const override { return from_ascii("Branch:") + 
branch(); }
+       docstring layoutName() const override;
        ///
        Inset * clone() const override { return new InsetBranch(*this); }
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to