summaryrefslogtreecommitdiff
path: root/wizards/source/tools/Misc.xba
diff options
context:
space:
mode:
authorTom Verbeek <tv@openoffice.org>2001-05-16 11:48:54 +0000
committerTom Verbeek <tv@openoffice.org>2001-05-16 11:48:54 +0000
commit3c9942db1ccb44392be1261061dd2335898149e2 (patch)
tree6ea3041569602dd30e13010c4dc3fd8285eb1dd9 /wizards/source/tools/Misc.xba
parent8977c7a2fe82cd2176e0c2e7f989e5a7cbce5ef1 (diff)
#75761# fixed sorting of webwizard and calc styles
Diffstat (limited to 'wizards/source/tools/Misc.xba')
-rw-r--r--wizards/source/tools/Misc.xba6
1 files changed, 4 insertions, 2 deletions
diff --git a/wizards/source/tools/Misc.xba b/wizards/source/tools/Misc.xba
index 576bc58c525c..4a05f20bf092 100644
--- a/wizards/source/tools/Misc.xba
+++ b/wizards/source/tools/Misc.xba
@@ -76,13 +76,15 @@ End Function
Function GetStarOfficeLocale() as New com.sun.star.lang.Locale
Dim aLocLocale As New com.sun.star.lang.Locale
Dim sLocale as String
-Dim sLocaleList()
+Dim sLocaleList(1)
Dim oMasterKey
oMasterKey = GetRegistryKeyContent(&quot;org.openoffice.UserProfile/International/&quot;)
sLocale = oMasterKey.getByName(&quot;Locale&quot;)
sLocaleList() = ArrayoutofString(sLocale, &quot;-&quot;)
aLocLocale.Language = sLocaleList(0)
- aLocLocale.Country = sLocaleList(1)
+ If Ubound(sLocaleList()) &gt; 0 Then
+ aLocLocale.Country = sLocaleList(1)
+ End If
GetStarOfficeLocale() = aLocLocale
End Function