diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-10-02 10:06:12 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-10-02 11:15:09 +0200 |
commit | 4dc04a10692dc932658d9d079bbe97fcaf0b4742 (patch) | |
tree | e3be1db7dbce42ff3d9ca76f58de04ea67d2e24d /chart2/qa | |
parent | 1c7f6188eb5b2a2bbf0cf589843d644306e40d6d (diff) |
qa: use SetODFDefaultVersion everywhere
Change-Id: I4a08abea9a6c61a0365d238abf1021806ae6df29
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174375
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'chart2/qa')
-rw-r--r-- | chart2/qa/extras/chart2geometry.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chart2/qa/extras/chart2geometry.cxx b/chart2/qa/extras/chart2geometry.cxx index f5d928379611..f5eb3b1f20ea 100644 --- a/chart2/qa/extras/chart2geometry.cxx +++ b/chart2/qa/extras/chart2geometry.cxx @@ -464,9 +464,10 @@ void Chart2GeometryTest::testTdf135366LabelExport() void Chart2GeometryTest::testTdf135366_CustomLabelText() { + Resetter resetter([]() { SetODFDefaultVersion(SvtSaveOptions::ODFVER_LATEST); }); + // 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. - const SvtSaveOptions::ODFDefaultVersion nCurrentODFVersion(GetODFDefaultVersion()); SetODFDefaultVersion(SvtSaveOptions::ODFVER_012); loadFromFile(u"pptx/tdf135366_CustomLabelText.pptx"); save(u"impress8"_ustr); @@ -482,8 +483,6 @@ void Chart2GeometryTest::testTdf135366_CustomLabelText() // Verify text content const OUString sOUTextContent = getXPathContent(pXmlDoc, sCustomTextPath); CPPUNIT_ASSERT_EQUAL(u"Custom"_ustr, sOUTextContent); - - SetODFDefaultVersion(nCurrentODFVersion); } CPPUNIT_TEST_SUITE_REGISTRATION(Chart2GeometryTest); |