From cab96d171beb833dd57d5fb3ea9405441d1b6447 Mon Sep 17 00:00:00 2001 From: Marco Cecchetti Date: Mon, 19 Oct 2015 21:02:31 +0200 Subject: svg export: left mouse click is working again Change-Id: I5a80fe3eb55caa6e57c7842e5ac74cd1abb93f0b Reviewed-on: https://gerrit.libreoffice.org/19471 Tested-by: Jenkins Reviewed-by: Jan Holesovsky --- filter/source/svg/presentation_engine.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'filter') diff --git a/filter/source/svg/presentation_engine.js b/filter/source/svg/presentation_engine.js index 892b76a950c5..a98ca7090c33 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 ) -- cgit v1.2.3