commit 20c15f45d9a8662a1747d6cf73158dea142781e7
Author: Georg Baum <[email protected]>
Date: Sun Mar 22 09:31:04 2015 +0100
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.
diff --git a/src/mathed/InsetMathSymbol.cpp b/src/mathed/InsetMathSymbol.cpp
index 97c7aea..dbc9231 100644
--- a/src/mathed/InsetMathSymbol.cpp
+++ b/src/mathed/InsetMathSymbol.cpp
@@ -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");
}
diff --git a/status.21x b/status.21x
index 417cb3d..18fb5e0 100644
--- a/status.21x
+++ b/status.21x
@@ -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