diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2020-08-26 09:06:59 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-08-27 21:14:58 +0200 |
commit | 51772544c03bc749c8b191e7134d738dd099dbaa (patch) | |
tree | a01ef336b820f0829f4199f64f1b416610de0c18 | |
parent | 129a60db424e2599f22e8d4ecddb07f8a1624d46 (diff) |
filter: svg export: error when playing an animated empty text field
Change-Id: I4af15c4503dbd8953c1caf2a51a09f41b94ca6f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101379
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | filter/source/svg/presentation_engine.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/filter/source/svg/presentation_engine.js b/filter/source/svg/presentation_engine.js index 3484fc296c7a..b4c8d3a63078 100644 --- a/filter/source/svg/presentation_engine.js +++ b/filter/source/svg/presentation_engine.js @@ -9661,6 +9661,7 @@ function NodeContext( aSlideShowContext ) this.aSourceEventElementMap = null; this.nStartDelay = 0.0; this.bFirstRun = undefined; + this.bIsInvalid = false; this.aSlideHeight = HEIGHT; this.aSlideWidth = WIDTH; } @@ -9933,7 +9934,7 @@ BaseNode.prototype.init = function() BaseNode.prototype.resolve = function() { - if( ! this.checkValidNode() ) + if( this.aNodeContext.bIsInvalid || ! this.checkValidNode() ) return false; this.DBG( this.callInfo( 'resolve' ) ); @@ -15226,7 +15227,8 @@ SlideAnimations.prototype.start = function() this.aContext.bFirstRun = false; // init all nodes - if( !this.aRootNode.init() ) + this.aContext.bIsInvalid = !this.aRootNode.init(); + if( this.aContext.bIsInvalid ) return false; // resolve root node @@ -15254,6 +15256,7 @@ SlideAnimations.prototype.end = function( bLeftEffectsSkipped ) this.aContext.bFirstRun = false; } + this.aContext.bIsInvalid = false; }; SlideAnimations.prototype.dispose = function() |