summaryrefslogtreecommitdiff
path: root/svx/source/core/graphichelper.cxx
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-01-30 13:45:12 +0100
committerDavid Tardon <dtardon@redhat.com>2015-01-30 14:03:22 +0100
commitbe45f378d5a888efeceed54ba53ac61c4dd3f2b8 (patch)
treee555b460f3cb49a4f16a0bbe4809c21aadfb0e88 /svx/source/core/graphichelper.cxx
parent05abd8b205e9d51af41c31ab8a7a2574ee885532 (diff)
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
Diffstat (limited to 'svx/source/core/graphichelper.cxx')
-rw-r--r--svx/source/core/graphichelper.cxx16
1 files changed, 0 insertions, 16 deletions
diff --git a/svx/source/core/graphichelper.cxx b/svx/source/core/graphichelper.cxx
index 50dadc2dc212..5e3aaa099610 100644
--- a/svx/source/core/graphichelper.cxx
+++ b/svx/source/core/graphichelper.cxx
@@ -243,22 +243,6 @@ void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xSha
}
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 )
aDefaultFormatName = "PNG - Portable Network Graphic";
xFilterManager->setCurrentFilter( aDefaultFormatName );