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-26 11:20:02 +0200 |
commit | 9e10fbaab0e5f2e8e1d4faa0bc8f0f30dba335e7 (patch) | |
tree | 4c14def14c31f3860dcc65a9259275ce7b05b429 /filter | |
parent | 27a52f8c106b30403701cf0058c8fc278bc04018 (diff) |
filter: svg export: error when playing an animated empty text field
Change-Id: I4af15c4503dbd8953c1caf2a51a09f41b94ca6f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101356
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'filter')
-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 95493607c41c..150510446324 100644 --- a/filter/source/svg/presentation_engine.js +++ b/filter/source/svg/presentation_engine.js @@ -9647,6 +9647,7 @@ function NodeContext( aSlideShowContext ) this.aSourceEventElementMap = null; this.nStartDelay = 0.0; this.bFirstRun = undefined; + this.bIsInvalid = false; this.aSlideHeight = HEIGHT; this.aSlideWidth = WIDTH; } @@ -9919,7 +9920,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' ) ); @@ -15212,7 +15213,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 @@ -15240,6 +15242,7 @@ SlideAnimations.prototype.end = function( bLeftEffectsSkipped ) this.aContext.bFirstRun = false; } + this.aContext.bIsInvalid = false; }; SlideAnimations.prototype.dispose = function() |