diff options
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index a8bd5feabfb8..bbf74a0c7cc6 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -3250,7 +3250,13 @@ void WW8PLCFx_Cp_FKP::GetSprms(WW8PLCFxDesc* p) */ WW8_CP nCpStart, nCpEnd; void* pData=NULL; - pPieceIter->Get(nCpStart, nCpEnd, pData); + bool bOk = pPieceIter->Get(nCpStart, nCpEnd, pData); + + if (!bOk) + { + pPieceIter->SetIdx(nOldPos); + return; + } WW8_FC nLimitFC = SVBT32ToUInt32( ((WW8_PCD*)pData)->fc ); WW8_FC nBeginLimitFC = nLimitFC; |