mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix setting of is_child runparam if grandchildren are involved
This commit is contained in:
parent
2f2841a016
commit
8a15fb0593
@ -946,9 +946,12 @@ void InsetInclude::validate(LaTeXFeatures & features) const
|
||||
// otherwise it would always be the master buffer,
|
||||
// and nested includes would not work.
|
||||
features.setBuffer(*tmp);
|
||||
// Maybe this is already a child
|
||||
bool const is_child =
|
||||
features.runparams().is_child;
|
||||
features.runparams().is_child = true;
|
||||
tmp->validate(features);
|
||||
features.runparams().is_child = false;
|
||||
features.runparams().is_child = is_child;
|
||||
features.setBuffer(buffer());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user