loleaflet/src/layer/tile/TileLayer.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit 210b5ecde95ac1d7716016bfdee9c1077e276105 Author: Dennis Francis <dennis.fran...@collabora.com> AuthorDate: Wed May 27 16:22:39 2020 +0530 Commit: Dennis Francis <dennis.fran...@collabora.com> CommitDate: Sun Jul 5 16:34:22 2020 +0200 Handle print-twips 'textselection' msg correctly Change-Id: I6da579fe74827ad6cf127a58300b0ffd9c50b248 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98110 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Tested-by: Jenkins 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 6c4ede99e..f34ca10a9 100644 --- a/loleaflet/src/layer/tile/TileLayer.js +++ b/loleaflet/src/layer/tile/TileLayer.js @@ -1669,10 +1669,11 @@ L.TileLayer = L.GridLayer.extend({ for (var i = 0; i < strTwips.length; i += 4) { var topLeftTwips = new L.Point(parseInt(strTwips[i]), parseInt(strTwips[i + 1])); var offset = new L.Point(parseInt(strTwips[i + 2]), parseInt(strTwips[i + 3])); - var topRightTwips = topLeftTwips.add(new L.Point(offset.x, 0)); - var bottomLeftTwips = topLeftTwips.add(new L.Point(0, offset.y)); var bottomRightTwips = topLeftTwips.add(offset); - rectangles.push([bottomLeftTwips, bottomRightTwips, topLeftTwips, topRightTwips]); + var boundsTwips = this._convertToTileTwipsSheetArea( + new L.Bounds(topLeftTwips, bottomRightTwips)); + rectangles.push([boundsTwips.getBottomLeft(), boundsTwips.getBottomRight(), + boundsTwips.getTopLeft(), boundsTwips.getTopRight()]); } var polygons = L.PolyUtil.rectanglesToPolygons(rectangles, this); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits