summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-03-15 10:49:51 +0000
committerOliver Bolte <obo@openoffice.org>2005-03-15 10:49:51 +0000
commit06dd380087c02e7133d78c5c6e09b0cc934bf9c7 (patch)
treed1c199253b5f051903c0cc01f050a16b1c71a5b3 /package
parentbf76ea4352c89c405b675d8fa8c5fb511595aa09 (diff)
INTEGRATION: CWS mav17 (1.8.8); FILE MERGED
2005/03/01 10:02:51 mav 1.8.8.1: #i23531# improve document repairing
Diffstat (limited to 'package')
-rw-r--r--package/source/zipapi/XUnbufferedStream.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/package/source/zipapi/XUnbufferedStream.cxx b/package/source/zipapi/XUnbufferedStream.cxx
index 0d7acc15e..64a133771 100644
--- a/package/source/zipapi/XUnbufferedStream.cxx
+++ b/package/source/zipapi/XUnbufferedStream.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XUnbufferedStream.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: rt $ $Date: 2005-01-31 09:16:41 $
+ * last change: $Author: obo $ $Date: 2005-03-15 11:49:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -103,7 +103,8 @@ XUnbufferedStream::XUnbufferedStream( ZipEntry & rEntry,
const vos::ORef < EncryptionData > &rData,
sal_Int8 nStreamMode,
sal_Bool bIsEncrypted,
- const ::rtl::OUString& aMediaType )
+ const ::rtl::OUString& aMediaType,
+ sal_Bool bRecoveryMode )
: maEntry ( rEntry )
, mxData ( rData )
, mbRawStream ( nStreamMode == UNBUFF_STREAM_RAW || nStreamMode == UNBUFF_STREAM_WRAPPEDRAW )
@@ -118,7 +119,7 @@ XUnbufferedStream::XUnbufferedStream( ZipEntry & rEntry,
, mnZipSize ( 0 )
, mnZipCurrent ( 0 )
, mnHeaderToRead ( 0 )
-, mbCheckCRC( sal_True )
+, mbCheckCRC( !bRecoveryMode )
{
mnZipCurrent = maEntry.nOffset;
if ( mbRawStream )