diff options
Diffstat (limited to 'svl/source/misc/strmadpt.cxx')
-rw-r--r-- | svl/source/misc/strmadpt.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx index 79adbb551d02..84fc56688828 100644 --- a/svl/source/misc/strmadpt.cxx +++ b/svl/source/misc/strmadpt.cxx @@ -639,6 +639,16 @@ sal_uLong SvInputStream::SeekPos(sal_uLong nPos) m_nSeekedFrom = STREAM_SEEK_TO_END; return nPos; } + else if ( nPos > Tell() ) + { + // Read out the bytes + sal_Int32 nRead = nPos - Tell(); + uno::Sequence< sal_Int8 > aBuffer; + m_xStream->readBytes( aBuffer, nRead ); + return nPos; + } + else if ( nPos == Tell() ) + return nPos; } SetError(ERRCODE_IO_CANTSEEK); return Tell(); |