summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@novell.com>2011-08-23 14:01:37 +0530
committerMuthu Subramanian <sumuthu@novell.com>2011-08-23 14:14:43 +0530
commitb6768c50736c6994e28de51c5f54cdadfd6f45f1 (patch)
tree68309f18ef3a7dc464ee2b666118cf295d4e0494 /svl
parent4432625b90bfd8b831e8a01bc5c380a1bf15fbc7 (diff)
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.cxx10
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();