diff options
author | Muthu Subramanian <sumuthu@novell.com> | 2011-08-23 14:01:37 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@novell.com> | 2011-08-23 14:14:43 +0530 |
commit | b6768c50736c6994e28de51c5f54cdadfd6f45f1 (patch) | |
tree | 68309f18ef3a7dc464ee2b666118cf295d4e0494 /svl | |
parent | gb_MINGWLIBDIR is not used anywhere (diff) | |
download | core-b6768c50736c6994e28de51c5f54cdadfd6f45f1.tar.gz core-b6768c50736c6994e28de51c5f54cdadfd6f45f1.zip |
n#699334: Legacy Diagram Text import.
- Imports Legacy Text.
- Formatting info is not imported.
Diffstat (limited to 'svl')
-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(); |