[Libreoffice-commits] core.git: sw/qa sw/source
Caolán McNamara
caolanm at redhat.com
Tue Jul 21 12:55:32 PDT 2015
sw/qa/core/data/ww8/pass/hang-1.doc |binary
sw/source/filter/ww8/ww8par3.cxx | 5 ++---
2 files changed, 2 insertions(+), 3 deletions(-)
New commits:
commit e2e6fa5ad5aaa20a9fa8a6d060d9edd241aefd52
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jul 21 17:06:05 2015 +0100
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
diff --git a/sw/qa/core/data/ww8/pass/hang-1.doc b/sw/qa/core/data/ww8/pass/hang-1.doc
new file mode 100644
index 0000000..8d68bbb
Binary files /dev/null and b/sw/qa/core/data/ww8/pass/hang-1.doc differ
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index 2079de6..3db3492 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())
More information about the Libreoffice-commits
mailing list