mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +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 should go to branch as well.
This commit is contained in:
parent
ee6583ff94
commit
5ee6172b7b
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user