summaryrefslogtreecommitdiff
path: root/writerperfect/qa
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2018-05-27 08:13:03 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2018-05-27 19:19:34 +0200
commitbb27318a41e7d8ee20cd23ed2c94d493f4ba0f81 (patch)
treee8cb70fc90251a1d0013ccdb4e44f8477620949d /writerperfect/qa
parent0b38b7313bdd57588ce51b0a0e4b86295b16d21b (diff)
creation of css::document::XFilter needs filter name
Change-Id: I5d580e2efe6cf34b9855e47190f6242323d7823a Reviewed-on: https://gerrit.libreoffice.org/54873 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'writerperfect/qa')
-rw-r--r--writerperfect/qa/unit/ImportTest.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/writerperfect/qa/unit/ImportTest.cxx b/writerperfect/qa/unit/ImportTest.cxx
index 1775f4fc6eeb..3168ac6aade3 100644
--- a/writerperfect/qa/unit/ImportTest.cxx
+++ b/writerperfect/qa/unit/ImportTest.cxx
@@ -95,9 +95,12 @@ WpftLoader ImportTest::createLoader(const rtl::OUString& rUrl,
aDesc[utl::MediaDescriptor::PROP_URL()] <<= rUrl;
aDesc[utl::MediaDescriptor::PROP_READONLY()] <<= true;
uno::Sequence<beans::PropertyValue> lDesc(aDesc.getAsConstPropertyValueList());
- const rtl::OUString sType = m_xTypeDetection->queryTypeByDescriptor(lDesc, true);
- CPPUNIT_ASSERT(!sType.isEmpty());
- const uno::Reference<document::XFilter> xFilter(m_xFilterFactory->createInstance(sType),
+ m_xTypeDetection->queryTypeByDescriptor(lDesc, true);
+ aDesc = lDesc;
+ rtl::OUString sFilter;
+ aDesc[utl::MediaDescriptor::PROP_FILTERNAME()] >>= sFilter;
+ CPPUNIT_ASSERT(!sFilter.isEmpty());
+ const uno::Reference<document::XFilter> xFilter(m_xFilterFactory->createInstance(sFilter),
UNO_QUERY);
CPPUNIT_ASSERT(xFilter.is());
return WpftLoader(rUrl, xFilter, rFactoryUrl, m_xDesktop, m_xTypeMap, m_xContext);