[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - loleaflet/src
Henry Castro
hcastro at collabora.com
Wed Apr 26 13:34:18 UTC 2017
loleaflet/src/layer/tile/ImpressTileLayer.js | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 16558d1a8060a7ffd4f069a235cf5e35fe9b06a5
Author: Henry Castro <hcastro at collabora.com>
Date: Tue Apr 25 14:42:23 2017 -0400
loleaflet: initialize undefined variable
Math.min(undefined, number) return NaN
Change-Id: I4b1c7c0428a4e665235a170282a377f980e84924
Reviewed-on: https://gerrit.libreoffice.org/36961
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/loleaflet/src/layer/tile/ImpressTileLayer.js b/loleaflet/src/layer/tile/ImpressTileLayer.js
index 859ef679..5a1b73aa 100644
--- a/loleaflet/src/layer/tile/ImpressTileLayer.js
+++ b/loleaflet/src/layer/tile/ImpressTileLayer.js
@@ -40,6 +40,7 @@ L.ImpressTileLayer = L.TileLayer.extend({
onAdd: function (map) {
L.TileLayer.prototype.onAdd.call(this, map);
this._annotations = {};
+ this._topAnnotation = 0;
},
onAnnotationCancel: function (e) {
More information about the Libreoffice-commits
mailing list