mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-19 22:40:26 +00:00
By default, use an argument's menu string as its label string.
If one wants different label strings, then provide those first.
This commit is contained in:
parent
7f590bc2a9
commit
affd6101bd
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user