diff options
author | David Tardon <dtardon@redhat.com> | 2014-05-30 12:43:22 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-05-30 20:04:46 +0200 |
commit | 69dac0a889d40680c852ce5e6fdfe3321ba9d9ad (patch) | |
tree | b7c482843746a013f6abb5d5156f3bc744afe119 | |
parent | 7099ed535f985318ebfe568f42cca6436a9653f8 (diff) |
reading from a stream must start at the beginning
Change-Id: I0c668244fffcda04a8fe34ef629754f5935cab4b
(cherry picked from commit ee016fbbe3f3af67b2b8b6fb516bf523a0e704ff)
-rw-r--r-- | writerperfect/source/common/WPXSvInputStream.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/writerperfect/source/common/WPXSvInputStream.cxx b/writerperfect/source/common/WPXSvInputStream.cxx index c9ff75ae23ca..b5786bfd7590 100644 --- a/writerperfect/source/common/WPXSvInputStream.cxx +++ b/writerperfect/source/common/WPXSvInputStream.cxx @@ -468,6 +468,8 @@ WPXSvInputStreamImpl::WPXSvInputStreamImpl( Reference< XInputStream > xStream ) try { mnLength = mxSeekable->getLength(); + if (0 < mxSeekable->getPosition()) + mxSeekable->seek(0); } catch ( ... ) { |