loleaflet/src/layer/tile/TileLayer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit 034a17b4ec41b2380b0d34c342fb2ae038833d49 Author: Dennis Francis <dennis.fran...@collabora.com> AuthorDate: Sun May 24 22:58:36 2020 +0530 Commit: Dennis Francis <dennis.fran...@collabora.com> CommitDate: Sun Jul 5 16:32:25 2020 +0200 Handle print-twips 'cellviewcursor' msg correctly Change-Id: I744a24aa54768f12ea8801f6ceabdd4c79fa483a Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98108 Tested-by: Jenkins Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Dennis Francis <dennis.fran...@collabora.com> diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js index 949e8354b..fd92bb468 100644 --- a/loleaflet/src/layer/tile/TileLayer.js +++ b/loleaflet/src/layer/tile/TileLayer.js @@ -1365,9 +1365,11 @@ L.TileLayer = L.GridLayer.extend({ var topLeftTwips = new L.Point(parseInt(strTwips[0]), parseInt(strTwips[1])); var offset = new L.Point(parseInt(strTwips[2]), parseInt(strTwips[3])); var bottomRightTwips = topLeftTwips.add(offset); + var boundsTwips = this._convertToTileTwipsSheetArea( + new L.Bounds(topLeftTwips, bottomRightTwips)); this._cellViewCursors[viewId].bounds = new L.LatLngBounds( - this._twipsToLatLng(topLeftTwips, this._map.getZoom()), - this._twipsToLatLng(bottomRightTwips, this._map.getZoom())); + this._twipsToLatLng(boundsTwips.getTopLeft(), this._map.getZoom()), + this._twipsToLatLng(boundsTwips.getBottomRight(), this._map.getZoom())); } this._cellViewCursors[viewId].part = parseInt(obj.part); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits