Fixup 12dfdbf0: intercept validate(), not latex()

The fake contents of the inset should be created before validate(), so
that the correct packages are loaded.
This commit is contained in:
Jean-Marc Lasgouttes 2022-03-10 17:10:17 +01:00
parent a6db1383f5
commit dc502c8279
2 changed files with 3 additions and 3 deletions

View File

@ -1226,10 +1226,10 @@ void InsetInfo::build()
}
void InsetInfo::latex(otexstream & os, OutputParams const & runparams) const
void InsetInfo::validate(LaTeXFeatures & features) const
{
const_cast<InsetInfo *>(this)->build();
InsetCollapsible::latex(os, runparams);
InsetCollapsible::validate(features);
}

View File

@ -217,7 +217,7 @@ public:
/// should paragraph indentation be omitted in any case?
bool neverIndent() const override { return true; }
///
void latex(otexstream &, OutputParams const &) const override;
void validate(LaTeXFeatures & features) const override;
///
InsetInfoParams params() const { return params_; }