From 7f47f5bd09b8bb32de9fd38f941a621965c48045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herbert=20D=C3=BCrr?= Date: Tue, 19 Jun 2012 07:25:13 +0000 Subject: [PATCH] #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) --- sw/source/filter/ww8/ww8scan.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index 7a204dd17f1e..80d6687734d3 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -6060,7 +6060,7 @@ WW8_STD* WW8Style::Read1STDFixed( short& rSkip, short* pcbStd ) a16Bit = 0; 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...