summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-06 15:50:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-06 16:07:39 +0100
commit09b72d9fda544ad48a50c991022d505dd347705a (patch)
tree75c32863fd24d04c6801273c9851635286add2ba /sw
parentdcf85b2f0c89a774a7b2d378ef4dcedc637887ad (diff)
eof is not an error, but we don't want to parse short read data
Change-Id: I17043c51e45de34a33db482141e33eb4a280e9c4
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8graf2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8graf2.cxx b/sw/source/filter/ww8/ww8graf2.cxx
index 1cc052ea1772..88fa9c7c000c 100644
--- a/sw/source/filter/ww8/ww8graf2.cxx
+++ b/sw/source/filter/ww8/ww8graf2.cxx
@@ -497,7 +497,7 @@ SwFrameFormat* SwWW8ImplReader::ImportGraf(SdrTextObj* pTextObj,
// Sanity check is needed because for example check boxes in field results
// contain a WMF-like struct
- if (!m_pDataStream->GetError() && (aPic.lcb >= 58))
+ if (m_pDataStream->good() && (aPic.lcb >= 58))
{
if( m_pFlyFormatOfJustInsertedGraphic )
{