loleaflet/src/layer/CalcGridLines.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit c790eb7d37b9b7217f8af556b2c0794ceb6c084a Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Wed Nov 13 18:10:18 2019 +0000 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Wed Nov 13 18:10:18 2019 +0000 loleaflet: calc: on IE11 headers and gridlines are not displayed Fix merge error with: The problem was that in CalcGridLine.onUpdate the integer costants Number.MAX_SAFE_INTEGER and Number.MIN_SAFE_INTEGER were used. Unfortunately such constants are not supported by IE11. Change-Id: I973f232fa48ce5ba1d125325c2ccf5d4e6610935 diff --git a/loleaflet/src/layer/CalcGridLines.js b/loleaflet/src/layer/CalcGridLines.js index 2dd9402e8..8d745999d 100644 --- a/loleaflet/src/layer/CalcGridLines.js +++ b/loleaflet/src/layer/CalcGridLines.js @@ -85,7 +85,7 @@ L.CalcGridLines = L.LayerGroup.extend({ ticks.forEachTick(function(idx, pos) { pos /= pixelToMapUnitRatio; this._colLines.addLayer( - L.polyline([[[ Number.MIN_SAFE_INTEGER, pos ],[ Number.MAX_SAFE_INTEGER, pos ]]], + L.polyline([[[ L.Util.MIN_SAFE_INTEGER, pos ],[ L.Util.MAX_SAFE_INTEGER, pos ]]], this.options ) ); @@ -101,7 +101,7 @@ L.CalcGridLines = L.LayerGroup.extend({ this._rowLines.addLayer( // Note that y-coordinates are inverted: Leaflet's CRS.Simple assumes // down = negative latlngs, whereas loolkit assumes down = positive twips - L.polyline([[[ -pos, Number.MIN_SAFE_INTEGER ],[ -pos, Number.MAX_SAFE_INTEGER ]]], + L.polyline([[[ -pos, L.Util.MIN_SAFE_INTEGER ],[ -pos, L.Util.MAX_SAFE_INTEGER ]]], this.options ) ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits