From 20c15f45d9a8662a1747d6cf73158dea142781e7 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 22 Mar 2015 09:31:04 +0100 Subject: [PATCH] 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. --- src/mathed/InsetMathSymbol.cpp | 6 ++++-- status.21x | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mathed/InsetMathSymbol.cpp b/src/mathed/InsetMathSymbol.cpp index 97c7aea1b6..dbc92316ea 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 417cb3dc3c..18fb5e0aa9 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