diff options
author | Mark Hung <marklh9@gmail.com> | 2018-07-14 14:02:14 +0800 |
---|---|---|
committer | Mark Hung <marklh9@gmail.com> | 2018-07-24 12:11:24 +0200 |
commit | 0bc245ede6ec5831561e950299071f57b0329da8 (patch) | |
tree | 3859b39917f64f61daedb17d6c30176e2f0d9b1f /oox | |
parent | e65da112029bf7b6a3b5d94b72bcd5d6ca225195 (diff) |
tdf#113818 convert formula of AnimContext.
Change-Id: I0f6f08247eaf8099d84c0e8201d22fc507b1cac4
Reviewed-on: https://gerrit.libreoffice.org/57414
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ppt/timenodelistcontext.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/oox/source/ppt/timenodelistcontext.cxx b/oox/source/ppt/timenodelistcontext.cxx index 2bd2e2a78f72..b286acdd6d94 100644 --- a/oox/source/ppt/timenodelistcontext.cxx +++ b/oox/source/ppt/timenodelistcontext.cxx @@ -578,17 +578,17 @@ namespace oox { namespace ppt { Any aTime = GetTimeAnimateValueTime( tav.msTime ); aTime >>= aKeyTimes[i]; aValues[i] = tav.maValue; + convertAnimationValueWithTimeNode(mpNode, aValues[i]); - OUString aTest; - tav.maValue >>= aTest; - if( !aTest.isEmpty() ) + // Examine pptx documents and find that only the first tav + // has the formula set. The formula can be used for the whole. + if (!tav.msFormula.isEmpty()) { - aValues[i] = tav.maValue; - } - else - { - aProps[ NP_FORMULA ] <<= tav.msFormula; + OUString sFormula = tav.msFormula; + convertMeasure(sFormula); + aProps[NP_FORMULA] <<= sFormula; } + ++i; } aProps[ NP_VALUES ] <<= aValues; |