]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfootlike.C
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetfootlike.C
index 0605cfe34a18ba1999dc51be0167dfc109ba45fe..85e3366316e013a83615e673da86703952e82725 100644 (file)
@@ -51,8 +51,8 @@ void InsetFootlike::write(Buffer const * buf, ostream & os) const
 
 bool InsetFootlike::insetAllowed(InsetOld::Code code) const
 {
-       if ((code == InsetOld::FOOT_CODE) || (code == InsetOld::MARGIN_CODE)
-           || (code == InsetOld::FLOAT_CODE))
+       if (code == InsetOld::FOOT_CODE || code == InsetOld::MARGIN_CODE
+           || code == InsetOld::FLOAT_CODE)
                return false;
        return InsetCollapsable::insetAllowed(code);
 }