summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stgstrms.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/stgstrms.cxx')
-rw-r--r--sot/source/sdstor/stgstrms.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index ae140fdb128a..35d99f27751f 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -1212,9 +1212,7 @@ sal_uInt64 StgTmpStrm::GetSize() const
sal_uInt64 n;
if( m_pStrm )
{
- sal_uInt64 old = m_pStrm->Tell();
- n = m_pStrm->Seek( STREAM_SEEK_TO_END );
- m_pStrm->Seek( old );
+ n = m_pStrm->TellEnd();
}
else
n = nEndOfData;