Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qgselevationprofilewidget: Reset the profile curve on clear #53468

Merged
merged 1 commit into from Jun 14, 2023

Conversation

ptitjano
Copy link
Contributor

Description

When the elevation profile is cleared, the canvas is cleared but the associated geometry is not cleared. Therefore, when a layer, it turned on, it gets redrawn.

This issue is fixed by clearing the geometry (mProfileCurve) when the profile tool is cleared.

Closes: #48117

When the elevation profile is cleared, the canvas is cleared but the
associated geometry is not cleared. Therefore, when a layer, it turned
on, it gets redrawn.

This issue is fixed by clearing the geometry (`mProfileCurve`) when
the profile tool is cleared.

Closes: qgis#48117
@benoitdm-oslandia benoitdm-oslandia added Needs Backporting Bug Either a bug report, or a bug fix. Let's hope for the latter! Profile tool labels Jun 14, 2023
@lbartoletti lbartoletti merged commit b516163 into qgis:master Jun 14, 2023
39 checks passed
@ptitjano ptitjano deleted the elevation-profile-fix-clear branch July 7, 2023 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Needs Backporting Profile tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Erased profile plot is redrawn after a layer toggles on/off.
3 participants