summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2014-08-20 02:01:56 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2014-08-21 18:28:40 +0300
commit495fe3bc22cfd09b79db1d822ef25ad5145a281d (patch)
tree9d508af9242d44700cfe80ff5e644e6e5b2ee8bc /desktop
parent6006747f0e728b162c433185c46e6bf74a26b395 (diff)
queryTypeByURL returns type name not filter name
Change-Id: Iad8f2b718af0c947d151f4bbfdcb575440396ff2
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/dispatchwatcher.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx
index 01d082e861e4..eba914df01fa 100644
--- a/desktop/source/app/dispatchwatcher.cxx
+++ b/desktop/source/app/dispatchwatcher.cxx
@@ -133,10 +133,10 @@ const SfxFilter* impl_getExportFilterFromUrl( const rtl::OUString& rUrl, const r
const Reference< document::XTypeDetection > xTypeDetector(
xContext->getServiceManager()->createInstanceWithContext( "com.sun.star.document.TypeDetection", xContext ),
UNO_QUERY_THROW );
- const rtl::OUString aFilterName( xTypeDetector->queryTypeByURL( rUrl ) );
+ const rtl::OUString aTypeName( xTypeDetector->queryTypeByURL( rUrl ) );
- const SfxFilter* pFilter( SfxFilter::GetFilterByName( aFilterName ) );
- if ( !pFilter || !pFilter->CanExport() )
+ const SfxFilter* pFilter( SfxGetpApp()->GetFilterMatcher().GetFilter4EA( aTypeName, SFX_FILTER_EXPORT ) );
+ if ( !pFilter )
pFilter = impl_lookupExportFilterForUrl( rUrl, rFactory );
if ( !pFilter )
{