diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-24 16:56:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-25 20:05:30 +0200 |
commit | 134f40136a9bea265d8f2fedfdb41a1e65d81b49 (patch) | |
tree | d00db8e5b8cc954440228b8815631aa937effdca /chart2 | |
parent | 28993c0a8d8628c650b661767fd8ab2228c507d9 (diff) |
use officecfg to retrieve OdfDefaultVersion
Change-Id: Id54b98d978965e7ce304b83d5eff7d6c844a41d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119474
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/qa/extras/chart2geometry.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chart2/qa/extras/chart2geometry.cxx b/chart2/qa/extras/chart2geometry.cxx index c1fe65fa927d..bcfa0d7276af 100644 --- a/chart2/qa/extras/chart2geometry.cxx +++ b/chart2/qa/extras/chart2geometry.cxx @@ -440,9 +440,8 @@ void Chart2GeometryTest::testTdf135366_CustomLabelText() { // Error was, that custom text in a data label was only exported in ODF extended, // although the used <chart:data-label> element exists since ODF 1.2. - SvtSaveOptions aSaveOpt; - const SvtSaveOptions::ODFDefaultVersion nCurrentODFVersion(aSaveOpt.GetODFDefaultVersion()); - aSaveOpt.SetODFDefaultVersion(SvtSaveOptions::ODFVER_012); + const SvtSaveOptions::ODFDefaultVersion nCurrentODFVersion(GetODFDefaultVersion()); + SetODFDefaultVersion(SvtSaveOptions::ODFVER_012); load(u"/chart2/qa/extras/data/pptx/", "tdf135366_CustomLabelText.pptx"); xmlDocUniquePtr pXmlDoc = parseExport("Object 1/content.xml", "impress8"); CPPUNIT_ASSERT(pXmlDoc); @@ -457,7 +456,7 @@ void Chart2GeometryTest::testTdf135366_CustomLabelText() const OUString sOUTextContent = getXPathContent(pXmlDoc, sCustomTextPath); CPPUNIT_ASSERT_EQUAL(OUString("Custom"), sOUTextContent); - aSaveOpt.SetODFDefaultVersion(nCurrentODFVersion); + SetODFDefaultVersion(nCurrentODFVersion); } CPPUNIT_TEST_SUITE_REGISTRATION(Chart2GeometryTest); |