diff options
author | Eike Rathke <erack@redhat.com> | 2014-01-17 19:21:56 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-01-17 23:50:10 +0100 |
commit | 8e826c7ff7c597e9f585377b2117f4dc24239dcc (patch) | |
tree | e03f0259688d8ed519e11b7467891ef5ca9407f0 | |
parent | 8e694ee17f8d84ac32151b56e4f5aa4663c8c067 (diff) |
fdo#73549 do not attempt to resolve an empty locale
... to match installed UI locales
Change-Id: If0ad0fde392bc5ea3cf454f4858330f5e93a6666
-rw-r--r-- | desktop/source/app/langselect.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/source/app/langselect.cxx b/desktop/source/app/langselect.cxx index 291e70822222..21228f849526 100644 --- a/desktop/source/app/langselect.cxx +++ b/desktop/source/app/langselect.cxx @@ -53,6 +53,9 @@ OUString foundLocale; OUString getInstalledLocale( 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) { if (installed[i] == locale) { return installed[i]; |