]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetNote.cpp
1/ call InsetCollapsable::validate instead of InsetText::validate in several
[features.git] / src / insets / InsetNote.cpp
index 91258a891ecd9c0e106401b4475c48c57ebabb14..f7f924bc0aab55c956d454d5967d21398e746b24 100644 (file)
@@ -328,13 +328,18 @@ int InsetNote::docbook(odocstream & os, OutputParams const & runparams_in) const
 
 void InsetNote::validate(LaTeXFeatures & features) const
 {
-       if (params_.type == InsetNoteParams::Comment)
+       switch (params_.type) {
+       case InsetNoteParams::Comment:
                features.require("verbatim");
-       if (params_.type == InsetNoteParams::Greyedout) {
+               break;
+       case InsetNoteParams::Greyedout:
                features.require("color");
                features.require("lyxgreyedout");
+               InsetCollapsable::validate(features);
+               break;
+       case InsetNoteParams::Note:
+               break;
        }
-       InsetText::validate(features);
 }