From d5dc8565b19b324d0623737934056da54f5d0db2 Mon Sep 17 00:00:00 2001 From: Matteo V Date: Tue, 26 Sep 2023 17:54:55 +0200 Subject: [PATCH] changing canvas selector for client side pdf print of long profile tool --- web/client/plugins/longitudinalProfile/Dock.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/client/plugins/longitudinalProfile/Dock.jsx b/web/client/plugins/longitudinalProfile/Dock.jsx index 661fb05692..8e93f5b6cf 100644 --- a/web/client/plugins/longitudinalProfile/Dock.jsx +++ b/web/client/plugins/longitudinalProfile/Dock.jsx @@ -196,7 +196,7 @@ const ChartData = ({ bsStyle="primary" disabled={isTainted} onClick={() => { - toPng(document.querySelector('canvas.ol-unselectable')) + toPng(document.querySelector('.ol-unselectable canvas')) .then(function(dataUrlMap) { generateChartImageUrl() .then((dataUrlChart) => {