mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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") {
|
} else if (tok == "menustring") {
|
||||||
lex.next();
|
lex.next();
|
||||||
arg.menustring = lex.getDocString();
|
arg.menustring = lex.getDocString();
|
||||||
|
if (arg.labelstring.empty())
|
||||||
|
arg.labelstring = arg.menustring;
|
||||||
} else if (tok == "mandatory") {
|
} else if (tok == "mandatory") {
|
||||||
lex.next();
|
lex.next();
|
||||||
arg.mandatory = lex.getBool();
|
arg.mandatory = lex.getBool();
|
||||||
|
Loading…
Reference in New Issue
Block a user