#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
(cherry picked from commit a428571aeecd1acee1b2d5a80cd1d9978f25aeb7)
This commit is contained in:
Herbert Dürr
2012-06-19 07:25:13 +00:00
committed by Caolán McNamara
parent 1cdb939546
commit 7f47f5bd09

View File

@@ -6060,7 +6060,7 @@ WW8_STD* WW8Style::Read1STDFixed( short& rSkip, short* pcbStd )
a16Bit = 0; a16Bit = 0;
rSt >> a16Bit; rSt >> a16Bit;
pStd->fAutoRedef = a16Bit & 0x0001 ; pStd->fAutoRedef = a16Bit & 0x0001 ;
pStd->fHidden = ( a16Bit & 0x0002 ) >> 2; pStd->fHidden = ( a16Bit & 0x0002 ) >> 1;
// man kann nie wissen: vorsichtshalber ueberlesen // man kann nie wissen: vorsichtshalber ueberlesen
// wir eventuelle Fuellsel, die noch zum BASE-Part gehoeren... // wir eventuelle Fuellsel, die noch zum BASE-Part gehoeren...