need to check for after reading and before seeking
seeking resets eof, so the IsEof is always false after the first loop Change-Id: I2e533f3f9c494566aabb947c05258a770e883b1f
This commit is contained in:
BIN
sw/qa/core/data/ww8/pass/hang-1.doc
Normal file
BIN
sw/qa/core/data/ww8/pass/hang-1.doc
Normal file
Binary file not shown.
@@ -1297,15 +1297,14 @@ WW8ListManager::WW8ListManager(SvStream& rSt_, SwWW8ImplReader& rReader_)
|
||||
{
|
||||
bOk = false;
|
||||
|
||||
if (rSt.IsEof())
|
||||
break;
|
||||
|
||||
WW8LFO aLFO;
|
||||
memset(&aLFO, 0, sizeof( aLFO ));
|
||||
|
||||
rSt.ReadUInt32( aLFO.nIdLst );
|
||||
rSt.SeekRel( 8 );
|
||||
rSt.ReadUChar( aLFO.nLfoLvl );
|
||||
if (!rSt.good())
|
||||
break;
|
||||
rSt.SeekRel( 3 );
|
||||
// soviele Overrides existieren
|
||||
if ((nMaxLevel < aLFO.nLfoLvl) || rSt.GetError())
|
||||
|
Reference in New Issue
Block a user