summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/source/stream/stream.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index 7ea8b205ff5b..04ddd2cba111 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -254,11 +254,7 @@ ErrCode SvLockBytes::Stat(SvLockBytesStat * pStat) const
}
if (pStat)
- {
- sal_uInt64 const nPos = m_pStream->Tell();
- pStat->nSize = m_pStream->Seek(STREAM_SEEK_TO_END);
- m_pStream->Seek(nPos);
- }
+ pStat->nSize = m_pStream->TellEnd();
return ERRCODE_NONE;
}