Skip to content

Commit

Permalink
qgselevationprofilecanvas: Remove the current job on clear
Browse files Browse the repository at this point in the history
When the canvas is cleared, the current job is not deleted. Therefore,
snapping is still active.

This issue is fixed by calling `cancelJobs` on clear.

Closes: #50766
  • Loading branch information
ptitjano committed Oct 23, 2024
1 parent 210491b commit 6221a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/elevation/qgselevationprofilecanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,7 @@ QVector<QgsProfileIdentifyResults> QgsElevationProfileCanvas::identify( const QR
void QgsElevationProfileCanvas::clear()
{
setProfileCurve( nullptr );
mPlotItem->setRenderer( nullptr );
cancelJobs();
mPlotItem->updatePlot();
}

Expand Down

0 comments on commit 6221a1e

Please sign in to comment.