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

Caolán McNamara caolanm at redhat.com
Thu Feb 2 15:53:18 UTC 2017


 sw/source/filter/ww8/wrtw8sty.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 22ec7880ba79df0ee2151f9a908fdd4507a345d7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Feb 2 15:45:34 2017 +0000

    bffvalidator: fix a retro-fitted by ms after the fact warning
    
    nVerBuiltInNamesWhenSaved (2 bytes): An unsigned integer that specifies the
    version number of the style names as defined by the application that writes the
    file. This value SHOULD be 0.
    
    old number is 2: which means...
    
    "Word 97 2"
    
    Specifying a value of 0 is recommended for maximum compatibility, as it will
    cause all versions of Word to update the names to whatever set of application
    defined style names is current, with little performance penalty.
    
    http://msdn.microsoft.com/en-us/library/0E246123-E907-4AD1-9DFC-558512E2B052
    
    Change-Id: I9a04f62f950c7965d6eb5e6ff23d9c09fe38d99e

diff --git a/sw/source/filter/ww8/wrtw8sty.cxx b/sw/source/filter/ww8/wrtw8sty.cxx
index 89c42e8..e033ac9 100644
--- a/sw/source/filter/ww8/wrtw8sty.cxx
+++ b/sw/source/filter/ww8/wrtw8sty.cxx
@@ -648,7 +648,7 @@ void WW8AttributeOutput::StartStyles()
     static sal_uInt8 aStShi[] = {
         0x12, 0x00,
         0x0F, 0x00, 0x0A, 0x00, 0x01, 0x00, 0x5B, 0x00,
-        0x0F, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
+        0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
         0x00, 0x00 };
 
     m_rWW8Export.pTableStrm->WriteBytes(&aStShi, sizeof(aStShi));


More information about the Libreoffice-commits mailing list