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

Erased profile plot is redrawn after a layer toggles on/off. #48117

Closed
2 tasks done
saberraz opened this issue Apr 7, 2022 · 0 comments · Fixed by #53468
Closed
2 tasks done

Erased profile plot is redrawn after a layer toggles on/off. #48117

saberraz opened this issue Apr 7, 2022 · 0 comments · Fixed by #53468
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Profile tool

Comments

@saberraz
Copy link
Contributor

saberraz commented Apr 7, 2022

What is the bug or the crash?

To reproduce the issue:
1- Draw a profile
2- Erase the profile plot
3- Turn on/off a layer
4- Erased plot will re-appear

CC @nyalldawson
@gioman I think we need a new label for profile plots.
profile_plot

Steps to reproduce the issue

See above

Versions

QGIS master

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@saberraz saberraz added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Apr 7, 2022
ptitjano added a commit to ptitjano/QGIS that referenced this issue Jun 14, 2023
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
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! Profile tool
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants