From: Dekel Tsur Date: Mon, 28 Oct 2002 10:47:24 +0000 (+0000) Subject: Change handling of LFUN_MATH_LIMITS. X-Git-Tag: 1.6.10~18071 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bcd410f9198cbd8f0e5dce0f2228460d887ef45a;p=features.git Change handling of LFUN_MATH_LIMITS. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5529 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 641f92fa67..b2adf9411f 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,5 +1,7 @@ 2002-10-28 Dekel Tsur + * math_scriptinset.C (dispatch): Change handling of LFUN_MATH_LIMITS. + * math_symbolinset.C (metrics): Compute em with the default font. * math_charinset.C (draw): Use math symbol fonts for <,> & = diff --git a/src/mathed/math_scriptinset.C b/src/mathed/math_scriptinset.C index e84ddc22a6..ebd2dab51e 100644 --- a/src/mathed/math_scriptinset.C +++ b/src/mathed/math_scriptinset.C @@ -491,7 +491,17 @@ MathInset::result_type MathScriptInset::dispatch (FuncRequest const & cmd, idx_type & idx, pos_type & pos) { if (cmd.action == LFUN_MATH_LIMITS) { - limits_ = limits_ < 0 ? 1 : -1; + if (!cmd.argument.empty()) { + if (cmd.argument == "limits") + limits_ = 1; + else if (cmd.argument == "nolimits") + limits_ = -1; + else + limits_ = 0; + } else if (limits_ == 0) + limits_ = (hasLimits()) ? -1 : 1; + else + limits_ = 0; return DISPATCHED; }