diff options
author | Mark Hung <marklh9@gmail.com> | 2019-03-16 23:17:31 +0800 |
---|---|---|
committer | Mark Hung <marklh9@gmail.com> | 2019-03-20 12:42:02 +0100 |
commit | 0546af3643114b5adf6e33f49d6834eb74ae793b (patch) | |
tree | 5872bf8488fb2301a9ba022cfc55f8e9c5d686a6 /sd | |
parent | a26524e348fe06b93c26b1b1fa3dae3a5b26d6fa (diff) |
tdf#123909 fix event source that refers to a timenode.
p:tn (see below) were treated as delay value instead of timenode id.
<p:stCondLst>
<p:cond evt="begin" delay="0">
<p:tn val="5"/>
</p:cond>
</p:stCondLst>
Just convert the timenode id to XAnimationNode and set
the event source properly.
Change-Id: Ib408be6714c6ac70dad7018e544e560cf59a40c0
Reviewed-on: https://gerrit.libreoffice.org/69340
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/export-tests-ooxml2.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index 157e9029b75e..06330de5101b 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -2095,7 +2095,9 @@ void SdOOXMLExportTest2::testTdf44223() "audio/x-wav"); xmlDocPtr pDoc1 = parseExport(tempFile, "ppt/slides/slide1.xml"); - assertXPath(pDoc1 , "//p:audio/p:cMediaNode/p:tgtEl/p:sndTgt[@r:embed]", 1); + + assertXPath(pDoc1 , "//p:audio/p:cMediaNode/p:cTn/p:stCondLst/p:cond", "evt", "begin"); + assertXPath(pDoc1 , "//p:audio/p:cMediaNode/p:cTn/p:stCondLst/p:cond", "delay", "0"); xmlDocPtr pDoc2 = parseExport(tempFile, "ppt/slides/slide2.xml"); assertXPath(pDoc2 , "//p:transition/p:sndAc/p:stSnd/p:snd[@r:embed]", 2); |