ICU-512 accidentally modifed the wrong line for (isParseIntegerOnly() || sawDecimal)

X-SVN-Rev: 2132
This commit is contained in:
George Rhoten 2000-08-08 02:13:55 +00:00
parent 965e162a6b
commit 74b568ba6d

View File

@ -1205,12 +1205,11 @@ UBool DecimalFormat::subparse(const UnicodeString& text, ParsePosition& parsePos
{ {
// If we're only parsing integers, or if we ALREADY saw the // If we're only parsing integers, or if we ALREADY saw the
// decimal, then don't parse this one. // decimal, then don't parse this one.
if (!isParseIntegerOnly() && !sawDecimal) if (isParseIntegerOnly() || sawDecimal)
{ break;
digits.fDecimalAt = digitCount; // Not digits.fCount! digits.fDecimalAt = digitCount; // Not digits.fCount!
sawDecimal = TRUE; sawDecimal = TRUE;
} }
}
else if (!isExponent && ch == grouping && isGroupingUsed()) else if (!isExponent && ch == grouping && isGroupingUsed())
{ {
// Ignore grouping characters, if we are using them, but require // Ignore grouping characters, if we are using them, but require