Fix stmaryrd operators with limits (bug 9458)

LyX did not display the limits of the big math operators defined by
stmaryrd.sty correctly. The reason for this was a missing check in
InsetMathSymbol::metrics(), where it is hardcoded which symbols use display
style limits and which symbols use inline limits. In an ideal world this
information would be contained explicitly in lib/symbols.

This should go to branch as well.
This commit is contained in:
Georg Baum 2015-03-13 18:34:39 +01:00
parent ee6583ff94
commit 5ee6172b7b

View File

@ -87,7 +87,8 @@ void InsetMathSymbol::metrics(MetricsInfo & mi, Dimension & dim) const
scriptable_ = false;
if (mi.base.style == LM_ST_DISPLAY)
if (sym_->inset == "cmex" || sym_->inset == "esint" ||
sym_->extra == "funclim")
sym_->extra == "funclim" ||
(sym_->inset == "stmry" && sym_->extra == "mathop"))
scriptable_ = true;
}
@ -144,7 +145,8 @@ bool InsetMathSymbol::takesLimits() const
sym_->inset == "cmex" ||
sym_->inset == "lyxboldsymb" ||
sym_->inset == "esint" ||
sym_->extra == "funclim";
sym_->extra == "funclim" ||
(sym_->inset == "stmry" && sym_->extra == "mathop");
}