Menu ▾ ▴

#2 Error in Class CurrencyStyle

open
nobody
None
5
2012-08-24
2012-08-24
No

There is a bug in method private void appendCurrencySymbol(StringBuffer) of class CurrencyStyle. Generated files can not be opened by OpenOffice. This is caused by an invald styles.xml. The currency symbol is surrounded by double-quotes (")
<number:currency-symbol >"€"</number:currency-symbol>
which is wrong, it must be
<number:currency-symbol >€</number:currency-symbol>

In the class CurrencyStyle the line
sb.append("\"" + this.getCurrencySymbol() + "\"</number:currency-symbol>");
must be
sb.append("" + this.getCurrencySymbol() + "</number:currency-symbol>");

Discussion

  • Matthias Molle

    Matthias Molle - 2012-08-24

    corrected version

     

Log in to post a comment.