mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Add InsertCotext tag also to InsetLayout argument (part of #4745)
This commit is contained in:
parent
bede4d320b
commit
977bbd9bc3
@ -273,6 +273,13 @@ static bool doInsertInset(Cursor & cur, Text * text,
|
|||||||
Layout::LaTeXArgMap::const_iterator const lait = args.find(ia->name());
|
Layout::LaTeXArgMap::const_iterator const lait = args.find(ia->name());
|
||||||
if (lait != args.end())
|
if (lait != args.end())
|
||||||
cotextinsert = (*lait).second.insertcotext;
|
cotextinsert = (*lait).second.insertcotext;
|
||||||
|
else {
|
||||||
|
InsetLayout const & il = cur.inset().getLayout();
|
||||||
|
args = il.args();
|
||||||
|
Layout::LaTeXArgMap::const_iterator const ilait = args.find(ia->name());
|
||||||
|
if (ilait != args.end())
|
||||||
|
cotextinsert = (*ilait).second.insertcotext;
|
||||||
|
}
|
||||||
// The argument requests to insert a copy of the co-text to the inset
|
// The argument requests to insert a copy of the co-text to the inset
|
||||||
if (cotextinsert) {
|
if (cotextinsert) {
|
||||||
docstring ds;
|
docstring ds;
|
||||||
|
@ -595,6 +595,9 @@ void InsetLayout::readArgument(Lexer & lex)
|
|||||||
} else if (tok == "insertcotext") {
|
} else if (tok == "insertcotext") {
|
||||||
lex.next();
|
lex.next();
|
||||||
arg.insertcotext = lex.getBool();
|
arg.insertcotext = lex.getBool();
|
||||||
|
} else if (tok == "insertcotext") {
|
||||||
|
lex.next();
|
||||||
|
arg.insertcotext = lex.getBool();
|
||||||
} else if (tok == "leftdelim") {
|
} else if (tok == "leftdelim") {
|
||||||
lex.next();
|
lex.next();
|
||||||
arg.ldelim = lex.getDocString();
|
arg.ldelim = lex.getDocString();
|
||||||
|
Loading…
Reference in New Issue
Block a user