From b6768c50736c6994e28de51c5f54cdadfd6f45f1 Mon Sep 17 00:00:00 2001 From: Muthu Subramanian Date: Tue, 23 Aug 2011 14:01:37 +0530 Subject: n#699334: Legacy Diagram Text import. - Imports Legacy Text. - Formatting info is not imported. --- svl/source/misc/strmadpt.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'svl') 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(); -- cgit