From 74b568ba6dbcc04f23c87dae88c54748b4a3373d Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Tue, 8 Aug 2000 02:13:55 +0000 Subject: [PATCH] ICU-512 accidentally modifed the wrong line for (isParseIntegerOnly() || sawDecimal) X-SVN-Rev: 2132 --- icu4c/source/i18n/decimfmt.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/icu4c/source/i18n/decimfmt.cpp b/icu4c/source/i18n/decimfmt.cpp index e9dbde4d08..a6f2aa0df5 100644 --- a/icu4c/source/i18n/decimfmt.cpp +++ b/icu4c/source/i18n/decimfmt.cpp @@ -1205,11 +1205,10 @@ UBool DecimalFormat::subparse(const UnicodeString& text, ParsePosition& parsePos { // If we're only parsing integers, or if we ALREADY saw the // decimal, then don't parse this one. - if (!isParseIntegerOnly() && !sawDecimal) - { - digits.fDecimalAt = digitCount; // Not digits.fCount! - sawDecimal = TRUE; - } + if (isParseIntegerOnly() || sawDecimal) + break; + digits.fDecimalAt = digitCount; // Not digits.fCount! + sawDecimal = TRUE; } else if (!isExponent && ch == grouping && isGroupingUsed()) {