From b4e6e261db915f67c99f178a5c6d158331378307 Mon Sep 17 00:00:00 2001 From: Mikhail Voitenko Date: Tue, 18 Jun 2002 06:11:35 +0000 Subject: #99809# compress ole objects also --- package/source/zippackage/ZipPackageStream.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx index 5665421cf059..d46ee6a361b8 100644 --- a/package/source/zippackage/ZipPackageStream.cxx +++ b/package/source/zippackage/ZipPackageStream.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ZipPackageStream.cxx,v $ * - * $Revision: 1.28 $ + * $Revision: 1.29 $ * - * last change: $Author: mtg $ $Date: 2001-11-15 20:27:47 $ + * last change: $Author: mav $ $Date: 2002-06-18 07:11:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -196,7 +196,8 @@ void SAL_CALL ZipPackageStream::setPropertyValue( const OUString& aPropertyName, if (sMediaType.getLength() > 0) { - if ( sMediaType.indexOf (OUString( RTL_CONSTASCII_USTRINGPARAM ( "text" ) ) ) != -1) + if ( sMediaType.indexOf (OUString( RTL_CONSTASCII_USTRINGPARAM ( "text" ) ) ) != -1 + || sMediaType.equals( OUString( RTL_CONSTASCII_USTRINGPARAM ( "application/vnd.sun.star.oleobject" ) ) ) ) bToBeCompressed = sal_True; else bToBeCompressed = sal_False; -- cgit v1.2.3