summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-06 15:28:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-06 16:07:39 +0100
commitdcf85b2f0c89a774a7b2d378ef4dcedc637887ad (patch)
tree1907231cb416f59bcd6e769c0298a9da53aa825d /sw
parentaeac0bcacb8f6efcedb79df90e68078483d5a68f (diff)
valgrind: reverse tests of use read result and test result is safe to use
Change-Id: Id5c70294ee49209061c4a1df95d06689d7f8383e
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 d0d332759d0f..1cc052ea1772 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 ((aPic.lcb >= 58) && !m_pDataStream->GetError())
+ if (!m_pDataStream->GetError() && (aPic.lcb >= 58))
{
if( m_pFlyFormatOfJustInsertedGraphic )
{