mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
713d83bf34
commit
20c15f45d9
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user