mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-11621 Changes in response to code review
X-SVN-Rev: 38592
This commit is contained in:
parent
ff017c9924
commit
1e38653868
1 changed files with 6 additions and 1 deletions
|
@ -1760,9 +1760,14 @@ public class DecimalFormat extends NumberFormat {
|
|||
result.append(digits[0]);
|
||||
}
|
||||
|
||||
// http://bugs.icu-project.org/trac/ticket/11621
|
||||
// add the decimal separator if it is to be always shown AND there are no decimal digits
|
||||
if ((fracBegin == -1) && this.decimalSeparatorAlwaysShown) {
|
||||
result.append(decimal);
|
||||
if (parseAttr) {
|
||||
// Length of decimal separator is 1.
|
||||
int decimalSeparatorBegin = result.length() - 1;
|
||||
addAttribute(Field.DECIMAL_SEPARATOR, decimalSeparatorBegin, result.length());
|
||||
}
|
||||
}
|
||||
|
||||
// Record field information
|
||||
|
|
Loading…
Add table
Reference in a new issue