incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1351596 - /incubator/ooo/trunk/main/sw/source/filter/ww8/ww8scan.cxx
Date Tue, 19 Jun 2012 08:25:14 GMT
Author: hdu
Date: Tue Jun 19 08:25:13 2012
New Revision: 1351596

URL: http://svn.apache.org/viewvc?rev=1351596&view=rev
Log:
#c704126# fix off-by-one when parsing WW8_STD's fHidden member

According to the header file ww8struc.hxx the fHidden member is at bit 1

Modified:
    incubator/ooo/trunk/main/sw/source/filter/ww8/ww8scan.cxx

Modified: incubator/ooo/trunk/main/sw/source/filter/ww8/ww8scan.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sw/source/filter/ww8/ww8scan.cxx?rev=1351596&r1=1351595&r2=1351596&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sw/source/filter/ww8/ww8scan.cxx (original)
+++ incubator/ooo/trunk/main/sw/source/filter/ww8/ww8scan.cxx Tue Jun 19 08:25:13 2012
@@ -6104,7 +6104,7 @@ WW8_STD* WW8Style::Read1STDFixed( short&
             if(10 > nRead ) break;
             rSt >> a16Bit;
             pStd->fAutoRedef =   a16Bit & 0x0001       ;
-            pStd->fHidden    = ( a16Bit & 0x0002 ) >> 2;
+            pStd->fHidden    = ( a16Bit & 0x0002 ) >> 1;
 
             // man kann nie wissen: vorsichtshalber ueberlesen
             // wir eventuelle Fuellsel, die noch zum BASE-Part gehoeren...



Mime
View raw message