]> git.lyx.org Git - lyx.git/commitdiff
Fixup 12dfdbf0: intercept validate(), not latex()
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 10 Mar 2022 16:10:17 +0000 (17:10 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 10 Mar 2022 16:10:17 +0000 (17:10 +0100)
The fake contents of the inset should be created before validate(), so
that the correct packages are loaded.

src/insets/InsetInfo.cpp
src/insets/InsetInfo.h

index f29f983c4ae643f6e854d5b728cdd4ea2b0b4df3..67aca81fe714ee556c44cd37ca4297224364f25b 100644 (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);
 }
 
 
index 244f15340b4f07043b89e97a9579e3feb37818b3..3531b41681204964af5ea1be556b3e55fc176be1 100644 (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_; }