Fix missing media-type for ODF thumbnails
As per ODF 1.2 Part 3, 4.8.10: A manifest:media-type attribute should be present for all files and directories where a MIME media type exists for the content of the file... So added "image/png" for the thumbnails there.
This commit is contained in:
parent
39ab4ede2a
commit
e0a2bb01d5
1 changed files with 4 additions and 0 deletions
|
@ -3684,6 +3684,10 @@ sal_Bool SfxObjectShell::WriteThumbnail( sal_Bool bEncrypted,
|
|||
uno::Reference< io::XTruncate > xTruncate( xStream->getOutputStream(), uno::UNO_QUERY_THROW );
|
||||
xTruncate->truncate();
|
||||
|
||||
uno::Reference < beans::XPropertySet > xSet( xStream, uno::UNO_QUERY );
|
||||
if ( xSet.is() )
|
||||
xSet->setPropertyValue( ::rtl::OUString::createFromAscii("MediaType"),
|
||||
uno::makeAny( ::rtl::OUString::createFromAscii("image/png") ) );
|
||||
if ( bEncrypted )
|
||||
{
|
||||
sal_uInt16 nResID = GraphicHelper::getThumbnailReplacementIDByFactoryName_Impl(
|
||||
|
|
Loading…
Reference in a new issue