summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2012-01-10 14:53:56 +0100
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2012-01-13 12:01:17 +0100
commit516bb47afcc71e69f8f6c6a6246455a2c4269c4c (patch)
tree81d81899a90678712dc50ed693ab2d282299e2e1 /sw/source
parenta0b20e1f023dedc849baf68f278c6f6df0660b11 (diff)
n#715421 - Word 2010 validation: no plcfhdd if ccpHdd is 0
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/filter/ww8/wrtw8sty.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/wrtw8sty.cxx b/sw/source/filter/ww8/wrtw8sty.cxx
index 2207f37431b5..21dc7c71be1c 100644
--- a/sw/source/filter/ww8/wrtw8sty.cxx
+++ b/sw/source/filter/ww8/wrtw8sty.cxx
@@ -1830,7 +1830,8 @@ void WW8_WrPlcSepx::WritePlcSed( WW8Export& rWrt ) const
void WW8_WrPlcSepx::WritePlcHdd( WW8Export& rWrt ) const
{
- if( pTxtPos && pTxtPos->Count() )
+ // Don't write out the PlcfHdd if ccpHdd is 0: it's a validation failure case.
+ if( rWrt.pFib->ccpHdr != 0 && pTxtPos && pTxtPos->Count() )
{
rWrt.pFib->fcPlcfhdd = rWrt.pTableStrm->Tell();
pTxtPos->Write( *rWrt.pTableStrm ); // Plc0