+// FIXME: See InsetMathSymbol::takesLimits, which seems to attempt the
+// same in a hardcoded way. takeLimits use is currently commented out in
+// InsetMathScript::metrics. It seems that the mathop test is general
+// enough, but only time will tell.
+bool InsetMathScript::allowsLimits() const
+{
+ if (nuc().empty())
+ return false;
+ // Only makes sense for insets of mathop class
+ if (nuc().back()->mathClass() != MC_OP)
+ return false;
+ return true;
+}
+