Skip to content

[fix] Elevation profiles: store weak map layer refs instead of raw layer pointers when setting profile sources#64813

Open
gacarrillor wants to merge 3 commits intoqgis:masterfrom
gacarrillor:fix_64218_elevation_profile_sources
Open

[fix] Elevation profiles: store weak map layer refs instead of raw layer pointers when setting profile sources#64813
gacarrillor wants to merge 3 commits intoqgis:masterfrom
gacarrillor:fix_64218_elevation_profile_sources

Conversation

@gacarrillor
Copy link
Member

Fix #64218

…(e.g., a layer from the project), subsequent usage of sources does not crash (i.e., there are no dangling pointers, but nullptrs that we can discard)
…refs instead of raw layer pointers when saving profile sources
…_qgslayoutelevationprofile.py, since setLayers() should be removed in QGIS 5.0, as it doesn't account for custom profile sources (which may come from plugins)
@github-actions github-actions bot added Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks Profile tool labels Feb 4, 2026
@github-actions github-actions bot added this to the 4.0.0 milestone Feb 4, 2026
@gacarrillor gacarrillor added Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks Profile tool and removed Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks Profile tool labels Feb 4, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit 5d62ea4)

🍎 MacOS Qt6 builds

Download MacOS Qt6 builds of this PR for testing.
This installer is not signed, control+click > open the app to avoid the warning
(Built from commit 5d62ea4)

@gacarrillor gacarrillor closed this Feb 4, 2026
@gacarrillor gacarrillor reopened this Feb 4, 2026
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! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks Profile tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QGIS crashes when opening print layout

1 participant