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:
Caolán McNamara
2015-07-21 17:06:05 +01:00
parent abe1788144
commit e2e6fa5ad5
2 changed files with 2 additions and 3 deletions

Binary file not shown.

View File

@@ -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())