summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/common/NumberFormatter.java
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/common/NumberFormatter.java')
-rw-r--r--wizards/com/sun/star/wizards/common/NumberFormatter.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/wizards/com/sun/star/wizards/common/NumberFormatter.java b/wizards/com/sun/star/wizards/common/NumberFormatter.java
index dfbd742aef8e..9a6ca217e6c9 100644
--- a/wizards/com/sun/star/wizards/common/NumberFormatter.java
+++ b/wizards/com/sun/star/wizards/common/NumberFormatter.java
@@ -48,6 +48,7 @@ public class NumberFormatter
private XNumberFormatTypes xNumberFormatTypes;
private XPropertySet xNumberFormatSettings;
private final Locale aLocale;
+ static private final Locale enLocale = new Locale( "en", "US", "" );
public NumberFormatter(XMultiServiceFactory _xMSF, XNumberFormatsSupplier _xNumberFormatsSupplier, Locale _aLocale) throws Exception
@@ -93,7 +94,7 @@ public class NumberFormatter
int NewFormatKey = xNumberFormats.queryKey(_FormatString, aLocale, true);
if (NewFormatKey == -1)
{
- NewFormatKey = xNumberFormats.addNew(_FormatString, aLocale);
+ NewFormatKey = xNumberFormats.addNewConverted(_FormatString, enLocale, aLocale);
}
return NewFormatKey;
}