Kaydet (Commit) be45f378 authored tarafından David Tardon's avatar David Tardon

tdf#85195 only check export formats for default format

What good would would a pre-selected export filter format to me if I
cannot save into it?

Change-Id: I9e5d06cec5ffa0ba325b8bfcfadc4fd55d39017a
üst 05abd8b2
...@@ -242,22 +242,6 @@ void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xSha ...@@ -242,22 +242,6 @@ void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xSha
aDefaultFormatName = aExportFormatName; aDefaultFormatName = aExportFormatName;
} }
if( aDefaultFormatName.getLength() == 0 )
{
nCount = rGraphicFilter.GetImportFormatCount();
for( sal_uInt16 i = 0; i < nCount; i++ )
{
const OUString aFilterMimeType( rGraphicFilter.GetImportFormatMediaType( i ) );
if( aMimeType == aFilterMimeType )
{
aDefaultFormatName = rGraphicFilter.GetImportFormatName( i );
xFilterManager->appendFilter( aDefaultFormatName, rGraphicFilter.GetImportWildcard( i ) );
aMimeTypeMap[ aDefaultFormatName ] = aFilterMimeType;
break;
}
}
}
if( aDefaultFormatName.getLength() == 0 ) if( aDefaultFormatName.getLength() == 0 )
aDefaultFormatName = "PNG - Portable Network Graphic"; aDefaultFormatName = "PNG - Portable Network Graphic";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment