setup_native/source/win32/customactions/sellang/sellang.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit dd3d1ff9544e2af15847385c24c59837e0db0af7
Author: Andras Timar <andras.ti...@collabora.com>
Date:   Thu Sep 8 09:40:14 2016 +0200

    fix en-US language selection logic
    
    Change-Id: I60a90e310bd60c97f4d135a4740928c6e19d3ebc
    Reviewed-on: https://gerrit.libreoffice.org/28743
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>
    Tested-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/setup_native/source/win32/customactions/sellang/sellang.cxx 
b/setup_native/source/win32/customactions/sellang/sellang.cxx
index 4f2827d..f83b0ac 100644
--- a/setup_native/source/win32/customactions/sellang/sellang.cxx
+++ b/setup_native/source/win32/customactions/sellang/sellang.cxx
@@ -341,7 +341,7 @@ extern "C" UINT __stdcall SelectLanguage( MSIHANDLE handle )
     }
     if (!matches) {
         for (int i = 0; i < nlangs; i++) {
-            if (strcmp(langs[nlangs].lang, "en_US") == 0) {
+            if (strcmp(langs[i].lang, "en_US") == 0) {
                 langs[i].install = true;
                 matches = true;
                 break;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to