[Libreoffice-commits] core.git: desktop/source

Eike Rathke erack at redhat.com
Fri Jan 17 14:50:44 PST 2014


 desktop/source/app/langselect.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 8e826c7ff7c597e9f585377b2117f4dc24239dcc
Author: Eike Rathke <erack at redhat.com>
Date:   Fri Jan 17 19:21:56 2014 +0100

    fdo#73549 do not attempt to resolve an empty locale
    
    ... to match installed UI locales
    
    Change-Id: If0ad0fde392bc5ea3cf454f4858330f5e93a6666

diff --git a/desktop/source/app/langselect.cxx b/desktop/source/app/langselect.cxx
index 291e708..21228f8 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];


More information about the Libreoffice-commits mailing list