summaryrefslogtreecommitdiff
path: root/oox/qa/unit/mcgr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/qa/unit/mcgr.cxx')
-rw-r--r--oox/qa/unit/mcgr.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/oox/qa/unit/mcgr.cxx b/oox/qa/unit/mcgr.cxx
index b752f49115f4..e64c8604b7c5 100644
--- a/oox/qa/unit/mcgr.cxx
+++ b/oox/qa/unit/mcgr.cxx
@@ -66,6 +66,16 @@ CPPUNIT_TEST_FIXTURE(TestMCGR, testFontworkColorGradientWord)
assertXPath(pXmlDoc, sPath + "w14:gs[3]", "pos", "100000");
assertXPath(pXmlDoc, sPath + "w14:gs[3]/w14:srgbClr", "val", "00ffff");
}
+
+CPPUNIT_TEST_FIXTURE(TestMCGR, testTdf155825_SourcOffsetRangeDifferent)
+{
+ // Color gradient has offset range [0,0.8] and transparency gradient has offset range [0,1].
+ loadFromURL(u"tdf155825_MCGR_SourceOffsetRangeDifferent.fodp");
+ // Save it to PPTX
+ // Without fix, a debug-build would have crashed in oox/source/export/drawingml.cxx from
+ // assert(false && "oox::WriteGradientFill: non-synchronized gradients (!)");
+ save("Impress Office Open XML");
+}
}
CPPUNIT_PLUGIN_IMPLEMENT();