Kaydet (Commit) 8e826c7f authored tarafından Eike Rathke's avatar Eike Rathke

fdo#73549 do not attempt to resolve an empty locale

... to match installed UI locales

Change-Id: If0ad0fde392bc5ea3cf454f4858330f5e93a6666
üst 8e694ee1
...@@ -53,6 +53,9 @@ OUString foundLocale; ...@@ -53,6 +53,9 @@ OUString foundLocale;
OUString getInstalledLocale( OUString getInstalledLocale(
css::uno::Sequence<OUString> const & installed, OUString const & locale) css::uno::Sequence<OUString> const & installed, OUString const & locale)
{ {
if (locale.isEmpty())
return OUString(); // do not attempt to resolve anything
for (sal_Int32 i = 0; i != installed.getLength(); ++i) { for (sal_Int32 i = 0; i != installed.getLength(); ++i) {
if (installed[i] == locale) { if (installed[i] == locale) {
return installed[i]; return installed[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment