Kaydet (Commit) 2aca701f authored tarafından Marco Cecchetti's avatar Marco Cecchetti Kaydeden (comit) Andras Timar

svg-export: text animation didn't work - fixed

That was due to 2 problems:
- The namespace for an animation attribute was wrong
- For debug build the bullet placeholder is not the first child

Change-Id: If10c362f6fcffd4a05164cc5ca3ff6cacf5c28c1
Reviewed-on: https://gerrit.libreoffice.org/20238Reviewed-by: 's avatarAndras Timar <andras.timar@collabora.com>
Tested-by: 's avatarAndras Timar <andras.timar@collabora.com>
(cherry picked from commit 1b26e2ef)
Reviewed-on: https://gerrit.libreoffice.org/20266
üst f75e4878
......@@ -5638,7 +5638,7 @@ AnimationBaseNode.prototype.parseElement = function()
}
// sub-item attribute for text animated element
var sSubItemAttr = aAnimElem.getAttributeNS( NSS['smil'], 'sub-item' );
var sSubItemAttr = aAnimElem.getAttributeNS( NSS['anim'], 'sub-item' );
this.bIsTargetTextElement = ( sSubItemAttr && ( sSubItemAttr === 'text' ) );
// additive attribute
......@@ -9185,7 +9185,7 @@ function AnimatedTextElement( aElement, aEventMultiplexer )
var aBulletCharGroupElem = getElementByClassName( aTextShapeGroup, 'BulletChars' );
if( aBulletCharGroupElem )
{
var aBulletPlaceholderElem = getElementByClassName( aElement.firstElementChild, 'BulletPlaceholder' );
var aBulletPlaceholderElem = getElementByClassName( aElement, 'BulletPlaceholder' );
if( aBulletPlaceholderElem )
{
var sId = aBulletPlaceholderElem.getAttribute( 'id' );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment