summaryrefslogtreecommitdiff
path: root/package/source/zippackage/ZipPackageEntry.cxx
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2001-01-11 14:05:48 +0000
committerMartin Gallwey <mtg@openoffice.org>2001-01-11 14:05:48 +0000
commit899e254d909ce5af904fbae0b22a86c4b3bdf0df (patch)
tree1312d23a7bf1613f11db6ab2a1157128b736838e /package/source/zippackage/ZipPackageEntry.cxx
parent5943454c7f1ca122579bed70b8ebde51b62467d0 (diff)
#82700# I added a check to make sure that when the media type is set, that it has length > 0
Diffstat (limited to 'package/source/zippackage/ZipPackageEntry.cxx')
-rw-r--r--package/source/zippackage/ZipPackageEntry.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/source/zippackage/ZipPackageEntry.cxx b/package/source/zippackage/ZipPackageEntry.cxx
index 0b972fc5d0e5..fd30cf0a44bd 100644
--- a/package/source/zippackage/ZipPackageEntry.cxx
+++ b/package/source/zippackage/ZipPackageEntry.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ZipPackageEntry.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: mtg $ $Date: 2001-01-10 11:36:01 $
+ * last change: $Author: mtg $ $Date: 2001-01-11 15:05:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -151,7 +151,7 @@ void SAL_CALL ZipPackageEntry::setPropertyValue( const ::rtl::OUString& aPropert
// compression method based on mime type. Obviously, if it's an existing
// member, we can't change the compression type without Bad Things
// Happening (tm)
- if ( !bPackageMember)
+ if ( !bPackageMember && sMediaType.getLength() > 0 )
{
if ( sMediaType.indexOf (OUString::createFromAscii("text")) != -1)
aEntry.nMethod = DEFLATED;