2002-10-28 Dekel Tsur <dekelts@tau.ac.il>
+ * 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 <,> & =
(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;
}