diff options
author | Kai Ahrens <ka@openoffice.org> | 2001-06-06 15:02:24 +0000 |
---|---|---|
committer | Kai Ahrens <ka@openoffice.org> | 2001-06-06 15:02:24 +0000 |
commit | dadc896e5a2bcd61d9e2de8933a93bdecd0890a1 (patch) | |
tree | f4d5a15ce48ec7cbdbc3f98ce97623a557648408 /svx/source/xml/xmlgrhlp.cxx | |
parent | b75b8e654471ff9f11604abc90bd80e24be05f6a (diff) |
#87667#: et compressed property depending on MimeType
Diffstat (limited to 'svx/source/xml/xmlgrhlp.cxx')
-rw-r--r-- | svx/source/xml/xmlgrhlp.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx index 84f0e6d990f4..10aaaa771adf 100644 --- a/svx/source/xml/xmlgrhlp.cxx +++ b/svx/source/xml/xmlgrhlp.cxx @@ -2,7 +2,7 @@ * * $RCSfile: xmlgrhlp.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * * last change: $Author: ka $ * @@ -255,11 +255,10 @@ sal_Bool SvXMLGraphicHelper::ImplWriteGraphic( const ::rtl::OUString& rPictureSt aAny <<= aMimeType; xStm->SetProperty( String( RTL_CONSTASCII_USTRINGPARAM( "MediaType" ) ), aAny ); } - else - { - aAny <<= ( (sal_Bool) sal_True ); - xStm->SetProperty( String( RTL_CONSTASCII_USTRINGPARAM( "Compressed" ) ), aAny ); - } + + const sal_Bool bCompressed = ( ( 0 == aMimeType.getLength() ) || ( aMimeType == OUString::createFromAscii( "image/tiff" ) ) ); + aAny <<= bCompressed; + xStm->SetProperty( String( RTL_CONSTASCII_USTRINGPARAM( "Compressed" ) ), aAny ); if( aGfxLink.GetDataSize() ) xStm->Write( aGfxLink.GetData(), aGfxLink.GetDataSize() ); |