[Libreoffice-commits] core.git: filter/source
Marco Cecchetti
marco.cecchetti at collabora.com
Tue Oct 20 07:53:28 PDT 2015
filter/source/svg/presentation_engine.js | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
New commits:
commit 1ee1d113fde9fbd46bfef31883221ad9ea822e0d
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
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 <ci at libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
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 )
More information about the Libreoffice-commits
mailing list