summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/doc/oleprops.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx
index 7c34acc49f35..1505f766b4df 100644
--- a/sfx2/source/doc/oleprops.cxx
+++ b/sfx2/source/doc/oleprops.cxx
@@ -1033,8 +1033,8 @@ void SfxOleSection::ImplSave( SvStream& rStrm )
bool SfxOleSection::SeekToPropertyPos( SvStream& rStrm, sal_uInt32 nPropPos ) const
{
- rStrm.Seek( static_cast< std::size_t >( mnStartPos + nPropPos ) );
- return rStrm.GetErrorCode() == ERRCODE_NONE;
+ return checkSeek(rStrm, static_cast<std::size_t>(mnStartPos + nPropPos)) &&
+ rStrm.GetErrorCode() == ERRCODE_NONE;
}
void SfxOleSection::LoadProperty( SvStream& rStrm, sal_Int32 nPropId )