[Libreoffice-commits] online.git: Branch 'feature/calc-canvas2' - loleaflet/src

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 16 14:41:41 UTC 2020


 loleaflet/src/layer/tile/CanvasTileLayer.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3bd84922ecf9ab86179b23168866e214baa240da
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Wed Sep 16 15:40:49 2020 +0100
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Wed Sep 16 15:40:49 2020 +0100

    calc canvas: use the right canvas size in core pixels to clear.
    
    Change-Id: I058cabd4daa51eb7da1f1ee33e59464692f00331

diff --git a/loleaflet/src/layer/tile/CanvasTileLayer.js b/loleaflet/src/layer/tile/CanvasTileLayer.js
index bbc4c3cfc..e814acaec 100644
--- a/loleaflet/src/layer/tile/CanvasTileLayer.js
+++ b/loleaflet/src/layer/tile/CanvasTileLayer.js
@@ -135,7 +135,7 @@ L.CanvasTilePainter = L.Class.extend({
 			this._canvasCtx.fillStyle = 'rgba(255, 0, 0, 0.5)';
 		else
 			this._canvasCtx.fillStyle = 'white';
-		this._canvasCtx.fillRect(0, 0, this._width, this._height);
+		this._canvasCtx.fillRect(0, 0, this._pixWidth, this._pixHeight);
 	},
 
 	// Details of tile areas to render


More information about the Libreoffice-commits mailing list