summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2012-06-19 07:25:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-03-01 12:44:14 +0000
commit7f47f5bd09b8bb32de9fd38f941a621965c48045 (patch)
tree0d6998f78279e7c46b55738a9da31e747eecf801 /sw
parent1cdb93954633a7a2a6346f7cd6637d57672b3c72 (diff)
#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)
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx2
1 files changed, 1 insertions, 1 deletions
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...