summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-21 18:30:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-21 20:56:57 +0200
commit92874c94caa8a46b44c3b4b6499c85ae97e61ae4 (patch)
tree1564bb7b06612f8fe4a66633e545c50886e75bc7 /filter
parent3da533cabddb0e02bd2d57bfd2acfb452cee0e61 (diff)
check that seeks succeeded
Change-Id: I4d27bf8287f9ba2945081537a6c839232df75c42 Reviewed-on: https://gerrit.libreoffice.org/43668 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/msdffimp.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index cfcc4f641cd9..09c6c9dacc41 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -6304,9 +6304,9 @@ bool SvxMSDffManager::GetBLIP( sal_uLong nIdx_, Graphic& rData, tools::Rectangle
// fetch matching info struct out of the pointer array
SvxMSDffBLIPInfo& rInfo = (*m_pBLIPInfos)[ nIdx-1 ];
// jump to the BLIP atom in the data stream
- pStData->Seek( rInfo.nFilePos );
+ bOk = checkSeek(*pStData, rInfo.nFilePos);
// possibly reset error status
- if( pStData->GetError() )
+ if (!bOk || pStData->GetError())
pStData->ResetError();
else
bOk = GetBLIPDirect( *pStData, rData, pVisArea );
@@ -6318,9 +6318,9 @@ bool SvxMSDffManager::GetBLIP( sal_uLong nIdx_, Graphic& rData, tools::Rectangle
pStData2->ResetError();
sal_uLong nOldPosData2 = pStData2->Tell();
// jump to the BLIP atom in the second data stream
- pStData2->Seek( rInfo.nFilePos );
+ bOk = checkSeek(*pStData2, rInfo.nFilePos);
// reset error status if necessary
- if( pStData2->GetError() )
+ if (!bOk || pStData2->GetError())
pStData2->ResetError();
else
bOk = GetBLIPDirect( *pStData2, rData, pVisArea );