vcl/win/gdi/winlayout.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit b9160c2511287223d7e014de3134fde917b9320e
Author: Michael Stahl <mst...@redhat.com>
Date:   Thu Jan 28 13:20:27 2016 +0100

    vcl: try to fix windows build
    
    There are at least 3 different definitions of SCRIPT_CONTROL, apparently
    newer versions of Windows SDK append flags at the end, so just
    initialize it with memset.
    
    Change-Id: I2e5f957bff1002629bf012e3effd3f1d281da3e1

diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index 856f70d..bc03845 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -1695,7 +1695,9 @@ bool UniscribeLayout::LayoutText( ImplLayoutArgs& rArgs )
     aScriptState.fDigitSubstitute   = bool(rArgs.mnFlags & 
SalLayoutFlags::SubstituteDigits);
     aScriptState.fArabicNumContext  = aScriptState.fDigitSubstitute & 
aScriptState.uBidiLevel;
     DWORD nLangId = 0;  // TODO: get language from font
-    SCRIPT_CONTROL aScriptControl = 
{nLangId,false,false,false,false,false,false,false,false,false,false,0};
+    SCRIPT_CONTROL aScriptControl;
+    memset(&aScriptControl, 0, sizeof(aScriptControl));
+    aScriptControl.uDefaultLanguage = nLangId;
     aScriptControl.fNeutralOverride = aScriptState.fOverrideDirection;
     aScriptControl.fContextDigits   = bool(rArgs.mnFlags & 
SalLayoutFlags::SubstituteDigits);
     aScriptControl.fMergeNeutralItems = true;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to