]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNote.cpp
Properly fix handling of title layouts within insets (#11787)
[lyx.git] / src / insets / InsetNote.cpp
index 920ebd82b71a3be389bcc04ba430aa0fddeec4fa..31df791f59a0e237df21bbc194a60b598da16804 100644 (file)
@@ -284,7 +284,7 @@ int InsetNote::docbook(odocstream & os, OutputParams const & runparams_in) const
 }
 
 
-docstring InsetNote::xhtml(XHTMLStream & xs, OutputParams const & rp) const
+docstring InsetNote::xhtml(XMLStream & xs, OutputParams const & rp) const
 {
        if (params_.type == InsetNoteParams::Note)
                return docstring();
@@ -306,6 +306,8 @@ void InsetNote::validate(LaTeXFeatures & features) const
                        features.useInsetLayout(getLayout());
                break;
        case InsetNoteParams::Greyedout:
+               if (features.hasRTLLanguage())
+                       features.require("environ");
                InsetCollapsible::validate(features);
                break;
        case InsetNoteParams::Note: