Fix for bug 146964 (Bug in format-number XSLT function). r=sicking, sr=jst.

This commit is contained in:
peterv%netscape.com 2005-11-02 07:37:37 +00:00
Родитель 069254688b
Коммит e909955eea
1 изменённых файлов: 0 добавлений и 11 удалений

Просмотреть файл

@ -137,7 +137,6 @@ ExprResult* txFormatNumberFunctionCall::evaluate(Node* aContext,
if (pos == formatLen) {
pos = 0;
prefix.append(format->mMinusSign);
value = value * -1;
}
else
pos++;
@ -176,16 +175,6 @@ ExprResult* txFormatNumberFunctionCall::evaluate(Node* aContext,
return new StringResult(err);
}
}
else if (c == format->mMinusSign) {
if (Double::isNeg(value))
value=-1 * value;
else {
String err(INVALID_PARAM_VALUE);
toString(err);
aCs->recieveError(err);
return new StringResult(err);
}
}
else if (c == format->mDecimalSeparator ||
c == format->mGroupingSeparator ||
c == format->mZeroDigit ||