From affd6101bddb3afebad05e16f36e771c04b7b8e3 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Mon, 15 Mar 2021 18:25:39 -0400 Subject: [PATCH] By default, use an argument's menu string as its label string. If one wants different label strings, then provide those first. --- src/insets/InsetLayout.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/insets/InsetLayout.cpp b/src/insets/InsetLayout.cpp index b6056cd098..00e63b895e 100644 --- a/src/insets/InsetLayout.cpp +++ b/src/insets/InsetLayout.cpp @@ -770,6 +770,8 @@ void InsetLayout::readArgument(Lexer & lex) } else if (tok == "menustring") { lex.next(); arg.menustring = lex.getDocString(); + if (arg.labelstring.empty()) + arg.labelstring = arg.menustring; } else if (tok == "mandatory") { lex.next(); arg.mandatory = lex.getBool();