summaryrefslogtreecommitdiff
path: root/package/source/zippackage/ZipPackageEntry.cxx
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2001-01-17 12:42:26 +0000
committerMartin Gallwey <mtg@openoffice.org>2001-01-17 12:42:26 +0000
commit3507007cbacb5a037006882c4f75d0c69d2253ac (patch)
tree480a999626c145258a5e078bc93d3e2b05cc4028 /package/source/zippackage/ZipPackageEntry.cxx
parent7e606aa0d549634ef6998a74577251c26ad86516 (diff)
Do not write data descriptors for STORED files because Jar doesn't like them
Diffstat (limited to 'package/source/zippackage/ZipPackageEntry.cxx')
-rw-r--r--package/source/zippackage/ZipPackageEntry.cxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/package/source/zippackage/ZipPackageEntry.cxx b/package/source/zippackage/ZipPackageEntry.cxx
index fb387b47f849..c8f79f34a158 100644
--- a/package/source/zippackage/ZipPackageEntry.cxx
+++ b/package/source/zippackage/ZipPackageEntry.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ZipPackageEntry.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: mtg $ $Date: 2001-01-16 17:06:14 $
+ * last change: $Author: mtg $ $Date: 2001-01-17 13:42:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -148,10 +148,13 @@ void SAL_CALL ZipPackageEntry::setPropertyValue( const ::rtl::OUString& aPropert
{
aValue >>= sMediaType;
- if ( sMediaType.indexOf (OUString::createFromAscii("text")) != -1)
- bToBeCompressed = sal_True;
- else
- bToBeCompressed = sal_False;
+ if (sMediaType.getLength() > 0)
+ {
+ if ( sMediaType.indexOf (OUString::createFromAscii("text")) != -1)
+ bToBeCompressed = sal_True;
+ else
+ bToBeCompressed = sal_False;
+ }
}
else if (aPropertyName == OUString::createFromAscii("Size"))
aValue >>= aEntry.nSize;