[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - filter/source

Marco Cecchetti marco.cecchetti at collabora.com
Wed Dec 9 01:27:32 PST 2015


 filter/source/svg/presentation_engine.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 930a555cd375ea1e9eeb71bd20b5d7359cb4d7f5
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
Date:   Tue Nov 24 14:44:19 2015 +0100

    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/20245
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/filter/source/svg/presentation_engine.js b/filter/source/svg/presentation_engine.js
index 50908af..569a562 100644
--- a/filter/source/svg/presentation_engine.js
+++ b/filter/source/svg/presentation_engine.js
@@ -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' );


More information about the Libreoffice-commits mailing list