summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2014-08-21 22:47:52 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2014-08-22 00:00:07 +0300
commitcebfcbd456ddfbd7291c85c6a6c329df165ccd3c (patch)
treecf60bb49396204cb9e6ebaa060fe83271c906b2b
parentd2a4e7c7f70a0ff0769ed228320833fa6b29bff9 (diff)
Better to use an instance with a doc service specified
...to avoid detection of filter from other services, and to additionally check for filters other than the preferred by the type (see SfxFilterMatcher::GetFilterForProps). Change-Id: I64609b32f6aac7553b4b6b96db88acfcad0ce000
-rw-r--r--desktop/source/app/dispatchwatcher.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx
index eba914df01fa..318fe67f5345 100644
--- a/desktop/source/app/dispatchwatcher.cxx
+++ b/desktop/source/app/dispatchwatcher.cxx
@@ -135,7 +135,7 @@ const SfxFilter* impl_getExportFilterFromUrl( const rtl::OUString& rUrl, const r
UNO_QUERY_THROW );
const rtl::OUString aTypeName( xTypeDetector->queryTypeByURL( rUrl ) );
- const SfxFilter* pFilter( SfxGetpApp()->GetFilterMatcher().GetFilter4EA( aTypeName, SFX_FILTER_EXPORT ) );
+ const SfxFilter* pFilter( SfxFilterMatcher( rFactory ).GetFilter4EA( aTypeName, SFX_FILTER_EXPORT ) );
if ( !pFilter )
pFilter = impl_lookupExportFilterForUrl( rUrl, rFactory );
if ( !pFilter )