From dc502c827985e1d0399ab0009aa6f807d14d5267 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 10 Mar 2022 17:10:17 +0100 Subject: [PATCH] Fixup 12dfdbf0: intercept validate(), not latex() The fake contents of the inset should be created before validate(), so that the correct packages are loaded. --- src/insets/InsetInfo.cpp | 4 ++-- src/insets/InsetInfo.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp index f29f983c4a..67aca81fe7 100644 --- a/src/insets/InsetInfo.cpp +++ b/src/insets/InsetInfo.cpp @@ -1226,10 +1226,10 @@ void InsetInfo::build() } -void InsetInfo::latex(otexstream & os, OutputParams const & runparams) const +void InsetInfo::validate(LaTeXFeatures & features) const { const_cast(this)->build(); - InsetCollapsible::latex(os, runparams); + InsetCollapsible::validate(features); } diff --git a/src/insets/InsetInfo.h b/src/insets/InsetInfo.h index 244f15340b..3531b41681 100644 --- a/src/insets/InsetInfo.h +++ b/src/insets/InsetInfo.h @@ -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_; }