mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Output arguments required by arguments with default or preset arg
Fixes: #9128
This commit is contained in:
parent
c21e51a4f9
commit
58db7c34f9
@ -321,6 +321,18 @@ void getArgInsets(otexstream & os, OutputParams const & runparams, Layout::LaTeX
|
||||
if (argnr == 0)
|
||||
return;
|
||||
|
||||
// Default and preset args are always output, so if they require
|
||||
// other arguments, consider this.
|
||||
Layout::LaTeXArgMap::const_iterator lit = latexargs.begin();
|
||||
Layout::LaTeXArgMap::const_iterator const lend = latexargs.end();
|
||||
for (; lit != lend; ++lit) {
|
||||
Layout::latexarg arg = (*lit).second;
|
||||
if ((!arg.presetarg.empty() || !arg.defaultarg.empty()) && !arg.requires.empty()) {
|
||||
vector<string> req = getVectorFromString(arg.requires);
|
||||
required.insert(required.end(), req.begin(), req.end());
|
||||
}
|
||||
}
|
||||
|
||||
for (unsigned int i = 1; i <= argnr; ++i) {
|
||||
map<int, InsetArgument const *>::const_iterator lit = ilist.find(i);
|
||||
bool inserted = false;
|
||||
|
Loading…
Reference in New Issue
Block a user