filter/source/svg/presentation_engine.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
New commits: commit 1ee1d113fde9fbd46bfef31883221ad9ea822e0d Author: Marco Cecchetti <[email protected]> Date: Mon Oct 19 21:02:31 2015 +0200 svg export: left mouse click is working again Change-Id: I5a80fe3eb55caa6e57c7842e5ac74cd1abb93f0b Reviewed-on: https://gerrit.libreoffice.org/19471 Tested-by: Jenkins <[email protected]> Reviewed-by: Jan Holesovsky <[email protected]> diff --git a/filter/source/svg/presentation_engine.js b/filter/source/svg/presentation_engine.js index 892b76a..a98ca70 100644 --- a/filter/source/svg/presentation_engine.js +++ b/filter/source/svg/presentation_engine.js @@ -3771,6 +3771,25 @@ function PriorityQueue( aCompareFunc ) this.bSorted = true; } +PriorityQueue.prototype.clone = function() +{ + var aCopy = new PriorityQueue( this.aCompareFunc ); + var src = this.aSequence; + var dest = []; + var i, l; + for( i = 0, l = src.length; i < l; ++i ) + { + if( i in src ) + { + dest.push( src[i] ); + } + } + aCopy.aSequence = dest; + aCopy.bSorted = this.bSorted; + + return aCopy; +}; + PriorityQueue.prototype.top = function() { if( !this.bSorted ) _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
