mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
a6db1383f5
commit
dc502c8279
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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_; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user