tdf#147586: Initialize mbBulletColorFollowText to false

Otherwise, once it's set to true, it's never reset

Change-Id: Ie8a752da4162775f40c2f84f480e6a103eb55942
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133422
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli
2022-04-26 08:50:56 +02:00
parent 7678e7ed88
commit a0bae88a9c
3 changed files with 24 additions and 1 deletions
@@ -58,7 +58,8 @@ using ::com::sun::star::awt::FontDescriptor;
namespace oox::drawingml {
BulletList::BulletList( )
: maBulletColorPtr( std::make_shared<Color>() )
: maBulletColorPtr( std::make_shared<Color>() ),
mbBulletColorFollowText ( false )
{
}
Binary file not shown.
+22
View File
@@ -36,6 +36,7 @@ class SdOOXMLExportTest3 : public SdModelTestBaseXML
public:
void testTdf129430();
void testTdf114848();
void testTdf147586();
void testTdf68759();
void testTdf127901();
void testTdf48735();
@@ -118,6 +119,7 @@ public:
CPPUNIT_TEST(testTdf129430);
CPPUNIT_TEST(testTdf114848);
CPPUNIT_TEST(testTdf147586);
CPPUNIT_TEST(testTdf68759);
CPPUNIT_TEST(testTdf127901);
CPPUNIT_TEST(testTdf48735);
@@ -231,6 +233,26 @@ void SdOOXMLExportTest3::testTdf114848()
"1f497d");
}
void SdOOXMLExportTest3::testTdf147586()
{
::sd::DrawDocShellRef xDocShRef
= loadURL(m_directories.getURLFromSrc(u"sd/qa/unit/data/pptx/tdf147586.pptx"), PPTX);
utl::TempFile tempFile;
xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile);
xDocShRef->DoClose();
xmlDocUniquePtr pXmlDocContent = parseExport(tempFile, "ppt/slides/slide1.xml");
// Without the fix in place, this test would have failed with
// - Expected: 227fc7
// - Actual : 4f4f4f
assertXPath(pXmlDocContent,
"/p:sld/p:cSld/p:spTree/p:sp[1]/p:txBody/a:p[1]/a:pPr/a:buClr/a:srgbClr", "val",
"227fc7");
assertXPath(pXmlDocContent,
"/p:sld/p:cSld/p:spTree/p:sp[1]/p:txBody/a:p[2]/a:pPr/a:buClr/a:srgbClr", "val",
"227fc7");
}
void SdOOXMLExportTest3::testTdf68759()
{
::sd::DrawDocShellRef xDocShRef