From 8e826c7ff7c597e9f585377b2117f4dc24239dcc Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 17 Jan 2014 19:21:56 +0100 Subject: fdo#73549 do not attempt to resolve an empty locale ... to match installed UI locales Change-Id: If0ad0fde392bc5ea3cf454f4858330f5e93a6666 --- desktop/source/app/langselect.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'desktop/source/app/langselect.cxx') 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 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]; -- cgit