summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/docfilt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/docfilt.cxx')
-rw-r--r--sfx2/source/doc/docfilt.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/sfx2/source/doc/docfilt.cxx b/sfx2/source/doc/docfilt.cxx
index ed5a13c1be80..a71c45412e0a 100644
--- a/sfx2/source/doc/docfilt.cxx
+++ b/sfx2/source/doc/docfilt.cxx
@@ -175,7 +175,7 @@ OUString SfxFilter::GetTypeFromStorage( const SotStorage& rStg )
}
OUString SfxFilter::GetTypeFromStorage(
- const uno::Reference<embed::XStorage>& xStorage, bool bTemplate )
+ const uno::Reference<embed::XStorage>& xStorage )
{
SfxFilterMatcher aMatcher;
@@ -191,13 +191,9 @@ OUString SfxFilter::GetTypeFromStorage(
SotClipboardFormatId nClipId = SotExchange::GetFormat( aDataFlavor );
if ( nClipId != SotClipboardFormatId::NONE )
{
- SfxFilterFlags nMust = SfxFilterFlags::IMPORT, nDont = SFX_FILTER_NOTINSTALLED;
- if ( bTemplate )
- // template filter was preselected, try to verify
- nMust |= SfxFilterFlags::TEMPLATEPATH;
- else
- // template filters shouldn't be detected if not explicitly asked for
- nDont |= SfxFilterFlags::TEMPLATEPATH;
+ SfxFilterFlags nMust = SfxFilterFlags::IMPORT;
+ // template filters shouldn't be detected if not explicitly asked for
+ SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED | SfxFilterFlags::TEMPLATEPATH;
// get filter from storage MediaType
std::shared_ptr<const SfxFilter> pFilter = aMatcher.GetFilter4ClipBoardId( nClipId, nMust, nDont );