Skip to content

Commit

Permalink
changing canvas selector for client side pdf print of long profile tool
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 authored Sep 26, 2023
1 parent 74c3e28 commit d5dc856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/client/plugins/longitudinalProfile/Dock.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit d5dc856

Please sign in to comment.