]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetInclude.cpp
Use new display() values to remove some inset hardcoding.
[features.git] / src / insets / InsetInclude.cpp
index fd673327d3ef6412e971533721a7b85c717c1eff..d6936c837e6f3668ea279d3c78056aacfde06cd9 100644 (file)
@@ -236,6 +236,13 @@ bool InsetInclude::isCompatibleCommand(string const & s)
 }
 
 
+bool InsetInclude::needsCProtection(bool const /*maintext*/, bool const fragile) const
+{
+       // We need to \cprotect all types in fragile context
+       return fragile;
+}
+
+
 void InsetInclude::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
        switch (cmd.action()) {
@@ -1152,7 +1159,7 @@ string InsetInclude::contextMenuName() const
 
 Inset::DisplayType InsetInclude::display() const
 {
-       return type(params()) == INPUT ? Inline : AlignCenter;
+       return type(params()) == INPUT ? Inline : Display;
 }