summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-02 10:15:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-02 14:48:51 +0100
commitc7c385bb8e42d2051bcf05fd75b2146fe9852317 (patch)
tree84492caf7059c686c3937075c8cfc73c82e011dd /sfx2/source
parenta165aa38d9009bf46e203bbdfbac3b7cd8f71b4c (diff)
coverity#1242904 error code overwritten
Change-Id: Ie5dcc39f05d7fd21a873ac95ca9cc7f00c1961df
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index 9975213bcd08..e6fcb91053d5 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -1884,7 +1884,8 @@ void SAL_CALL SfxBaseModel::load( const Sequence< beans::PropertyValue >& seqA
m_pData->m_pObjectShell->PrepareSecondTryLoad_Impl();
if ( !m_pData->m_pObjectShell->DoLoad(pMedium) )
nError=ERRCODE_IO_GENERAL;
- nError = m_pData->m_pObjectShell->GetErrorCode();
+ if (m_pData->m_pObjectShell->GetErrorCode())
+ nError = m_pData->m_pObjectShell->GetErrorCode();
}
}