tdf#90010 Partially revert "package: Do not bother with deflating jpeg images"
This reverts commit 0843ade74e
for the case, when
the document is protected by password. Would be nice to fix properly later.
Change-Id: If159639d6f74de4e106e9dad382faac9d5de4a09
This commit is contained in:
@@ -775,7 +775,8 @@ bool ZipPackageStream::saveChild(
|
|||||||
|
|
||||||
uno::Reference< io::XSeekable > xSeek(xStream, uno::UNO_QUERY);
|
uno::Reference< io::XSeekable > xSeek(xStream, uno::UNO_QUERY);
|
||||||
// It's not worth to deflate jpegs to save ~1% in a slow process
|
// It's not worth to deflate jpegs to save ~1% in a slow process
|
||||||
if (xSeek.is() && msMediaType.endsWith("/jpeg"))
|
// Unfortunately, does not work for streams protected by password
|
||||||
|
if (xSeek.is() && msMediaType.endsWith("/jpeg") && !m_bToBeEncrypted)
|
||||||
{
|
{
|
||||||
ImplSetStoredData(*pTempEntry, xStream);
|
ImplSetStoredData(*pTempEntry, xStream);
|
||||||
xSeek->seek(0);
|
xSeek->seek(0);
|
||||||
|
Reference in New Issue
Block a user