ICU-13442 Set grouping sizes to 0 instead of -1 when disabling grouping.

X-SVN-Rev: 40673
This commit is contained in:
Shane Carr 2017-11-17 00:23:59 +00:00
parent f48ecca6f7
commit 9adfad0bdb

View File

@ -1819,8 +1819,8 @@ public class DecimalFormat extends NumberFormat {
// Set to a reasonable default value
properties.setGroupingSize(3);
} else {
properties.setGroupingSize(-1);
properties.setSecondaryGroupingSize(-1);
properties.setGroupingSize(0);
properties.setSecondaryGroupingSize(0);
}
refreshFormatter();
}