summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2001-06-22 10:46:49 +0000
committerMartin Gallwey <mtg@openoffice.org>2001-06-22 10:46:49 +0000
commit258efc65a061af231894149d1e68204620b65cd0 (patch)
treec2136a14a997a98a9cb45f5e7468c00e064f50ce /package
parent7e851f41f6463a5ad13e5430a84742a63ebf8623 (diff)
#87667# The if encrypted then compress check should be done when writing not here, as we don't know here if we have an encryption key or not
Diffstat (limited to 'package')
-rw-r--r--package/source/zippackage/ZipPackageStream.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx
index 156c80a7dc86..4e5986977830 100644
--- a/package/source/zippackage/ZipPackageStream.cxx
+++ b/package/source/zippackage/ZipPackageStream.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ZipPackageStream.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: mtg $ $Date: 2001-05-31 10:29:31 $
+ * last change: $Author: mtg $ $Date: 2001-06-22 11:46:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -236,18 +236,12 @@ void SAL_CALL ZipPackageStream::setPropertyValue( const OUString& aPropertyName,
else
bToBeCompressed = sal_False;
}
- // I said: Always compress encrypted documents!
- if (!bToBeCompressed && bToBeEncrypted)
- bToBeCompressed = sal_True;
}
else if (aPropertyName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Size") ) )
aValue >>= aEntry.nSize;
else if (aPropertyName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Encrypted") ) )
{
aValue >>= bToBeEncrypted;
- // Always compress encrypted documents
- if ( bToBeEncrypted )
- bToBeCompressed = sal_True;
}
#if SUPD>617
else if (aPropertyName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Compressed") ) )