X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmathed%2Fmath_funcliminset.C;h=2788b420516a14821675a29966394e8965d655de;hb=970f0247f7d3ebbabc1348549ef4bd8d9b335545;hp=b527af5fa2dde66e6a45fda5d31609f59f131f6d;hpb=c9c3b9b447c3f99a059730e7e4a6caf95496221a;p=lyx.git diff --git a/src/mathed/math_funcliminset.C b/src/mathed/math_funcliminset.C index b527af5fa2..2788b42051 100644 --- a/src/mathed/math_funcliminset.C +++ b/src/mathed/math_funcliminset.C @@ -17,7 +17,13 @@ MathInset * MathFuncLimInset::clone() const } -void MathFuncLimInset::write(ostream & os, bool /* fragile */) const +bool MathFuncLimInset::isScriptable() const +{ + return size_.style == LM_ST_DISPLAY; +} + + +void MathFuncLimInset::write(MathWriteInfo & os) const { os << '\\' << sym_->name << ' '; } @@ -29,10 +35,11 @@ void MathFuncLimInset::writeNormal(ostream & os) const } -void MathFuncLimInset::metrics(MathStyles st) const +void MathFuncLimInset::metrics(MathMetricsInfo const & st) const { - size(st); - mathed_string_dim(LM_TC_TEXTRM, size(), sym_->name, ascent_, descent_, width_); + size_ = st; + mathed_string_dim(LM_TC_TEXTRM, size_, sym_->name, + ascent_, descent_, width_); }