save properly fadecolor also for fadeovercolor (tdf#138353)

As far as I can tell .odp spec doesn't recognize 'fadeovercolor'
as a subtype of 'fade' (it's an LO extension?). But it's already
saved by LO if used, so save the color properly as well. Reading
it already works too.

Change-Id: I30e464123f17d513fd0eaa32797f06e76a91d532
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106505
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
This commit is contained in:
Luboš Luňák
2020-11-24 15:04:24 +01:00
parent ee2cc952ee
commit 21d36af1fd

View File

@@ -605,7 +605,9 @@ void AnimationsExporterImpl::exportTransitionNode()
if( !bDirection )
mxExport->AddAttribute( XML_NAMESPACE_SMIL, XML_DIRECTION, XML_REVERSE );
if( (nTransition == TransitionType::FADE) && ((nSubtype == TransitionSubType::FADETOCOLOR) || (nSubtype == TransitionSubType::FADEFROMCOLOR) ))
if( (nTransition == TransitionType::FADE)
&& ((nSubtype == TransitionSubType::FADETOCOLOR) || (nSubtype == TransitionSubType::FADEFROMCOLOR)
|| (nSubtype == TransitionSubType::FADEOVERCOLOR)))
{
::sax::Converter::convertColor( sTmp, nFadeColor );
mxExport->AddAttribute( XML_NAMESPACE_SMIL, XML_FADECOLOR, sTmp.makeStringAndClear() );