mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-17 18:56:53 +00:00
ICU-13725 Fixing field reference in compactdecimalformat.cpp, broken by previous commit.
X-SVN-Rev: 41280
This commit is contained in:
parent
18bfb67a60
commit
acbdeaf98e
1 changed files with 4 additions and 3 deletions
|
@ -10,6 +10,7 @@
|
|||
#define UNISTR_FROM_STRING_EXPLICIT
|
||||
|
||||
#include "unicode/compactdecimalformat.h"
|
||||
#include "number_mapper.h"
|
||||
#include "number_decimfmtprops.h"
|
||||
|
||||
using namespace icu;
|
||||
|
@ -29,9 +30,9 @@ CompactDecimalFormat::CompactDecimalFormat(const Locale& inLocale, UNumberCompac
|
|||
: DecimalFormat(new DecimalFormatSymbols(inLocale, status), status) {
|
||||
if (U_FAILURE(status)) return;
|
||||
// Minimal properties: let the non-shim code path do most of the logic for us.
|
||||
fProperties->compactStyle = style;
|
||||
fProperties->groupingSize = -2; // do not forward grouping information
|
||||
fProperties->minimumGroupingDigits = 2;
|
||||
fields->properties->compactStyle = style;
|
||||
fields->properties->groupingSize = -2; // do not forward grouping information
|
||||
fields->properties->minimumGroupingDigits = 2;
|
||||
touch(status);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue