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

Fix Point Displacement / Point Cluster symbology when switching between them (Fix #58040) #58139

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

agiudiceandrea
Copy link
Contributor

@agiudiceandrea agiudiceandrea commented Jul 16, 2024

Description

Fixes #58040 just avoiding to clone and set (in QgsPointClusterRenderer::convertFromRenderer and QgsPointDisplacementRenderer::convertFromRenderer) the Cluster / Center symbol when directly switching the symbology from Point Displacement to Point Cluster and viceversa.

The following tests had to be removed: self.assertEqual(d.clusterSymbol().color(), QColor(0, 255, 0)) in test_qgspointclusterrenderer.py and self.assertEqual(d.centerSymbol().color(), QColor(0, 255, 0)) in test_qgspointdisplacementrenderer.py.

@agiudiceandrea agiudiceandrea added GUI/UX Related to QGIS application GUI or User Experience Symbology Related to vector layer symbology or renderers labels Jul 16, 2024
@github-actions github-actions bot added this to the 3.40.0 milestone Jul 16, 2024
@agiudiceandrea agiudiceandrea added Bug Either a bug report, or a bug fix. Let's hope for the latter! backport queued_ltr_backports Queued Backports backport release-3_38 labels Jul 16, 2024
@agiudiceandrea agiudiceandrea changed the title Fix Point Displacement / Point Cluster symbology when switching between them. Fix Point Displacement / Point Cluster symbology when switching between them (Fix #58040) Jul 16, 2024
Copy link

github-actions bot commented Jul 16, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 813b7b9)

@agiudiceandrea agiudiceandrea removed the GUI/UX Related to QGIS application GUI or User Experience label Jul 17, 2024
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! Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Point Displacement / Cluster: Direct change doesn't affect the Center / Cluster symbol
2 participants