filter/source/svg/presentation_engine.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit 9e10fbaab0e5f2e8e1d4faa0bc8f0f30dba335e7 Author: Marco Cecchetti <marco.cecche...@collabora.com> AuthorDate: Wed Aug 26 09:06:59 2020 +0200 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Wed Aug 26 11:20:02 2020 +0200 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.ti...@collabora.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> 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() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits