summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par3.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-07-21 17:06:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-07-21 20:55:00 +0100
commite2e6fa5ad5aaa20a9fa8a6d060d9edd241aefd52 (patch)
tree3389faa49f7f07c252375b4c7a79451e86467549 /sw/source/filter/ww8/ww8par3.cxx
parentabe178814489286aa45dc0799df50e650a78bc9d (diff)
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
Diffstat (limited to 'sw/source/filter/ww8/ww8par3.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par3.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index 2079de69ef90..3db34924a8e4 100644
--- a/sw/source/filter/ww8/ww8par3.cxx
+++ b/sw/source/filter/ww8/ww8par3.cxx
@@ -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())