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 commit is contained in:
Georg Baum 2015-03-22 09:31:04 +01:00
parent 713d83bf34
commit 20c15f45d9
2 changed files with 7 additions and 2 deletions

View File

@ -86,7 +86,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;
}
@ -143,7 +144,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");
}

View File

@ -54,6 +54,9 @@ What's new
- Add a "Do not show again" checkbox to the warning that is issued when the
LaTeX class/packages are missing for a given layout (bug 9420).
- Fix display of limits for some math operators provided by stmaryrd.sty
(bug 9458).
* DOCUMENTATION AND LOCALIZATION