X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathSymbol.cpp;h=291dabb3b9d037e85d1ce57b8ea69dfb7295abc6;hb=593bfe248a15be99bfce7e12cde6c59c92951f5f;hp=471ee75460a5648b3d2849bbc6a02db8308325d8;hpb=0b3e69167cb0eab323e4fe430c5d75fff9c45f3d;p=lyx.git diff --git a/src/mathed/InsetMathSymbol.cpp b/src/mathed/InsetMathSymbol.cpp index 471ee75460..291dabb3b9 100644 --- a/src/mathed/InsetMathSymbol.cpp +++ b/src/mathed/InsetMathSymbol.cpp @@ -23,7 +23,6 @@ #include "support/debug.h" #include "support/docstream.h" -#include "support/lyxlib.h" #include "support/textutils.h" #include "support/unique_ptr.h" @@ -59,10 +58,12 @@ docstring InsetMathSymbol::name() const /// The default limits value -Limits InsetMathSymbol::defaultLimits() const +Limits InsetMathSymbol::defaultLimits(bool display) const { - return (allowsLimitsChange() && sym_->extra != "func") - ? LIMITS : NO_LIMITS; + if (allowsLimitsChange() && sym_->extra != "func" && display) + return LIMITS; + else + return NO_LIMITS; } @@ -155,7 +156,7 @@ void InsetMathSymbol::mathematica(MathematicaStream & os) const } -void InsetMathSymbol::mathmlize(MathStream & ms) const +void InsetMathSymbol::mathmlize(MathMLStream & ms) const { // FIXME We may need to do more interesting things // with MathMLtype. @@ -204,7 +205,7 @@ void InsetMathSymbol::octave(OctaveStream & os) const } -void InsetMathSymbol::write(WriteStream & os) const +void InsetMathSymbol::write(TeXMathStream & os) const { unique_ptr ensurer; if (currentMode() != TEXT_MODE)