Skip to content

Elevation profile stops respecting layer order on layer properties change #64806

Description

@ViperMiniQ

What is the bug or the crash?

Layer order in the elevation profile tree dictates rendering order (which ones go on top or which layer's data will be covered by the data from other layers).

Changing properties of the layer breaks the layer order and manual reordering is necessary to get back to the previous state.

Screencast_20260204_124526.webm

Steps to reproduce the issue

1.) Load multiple layers.
2.) Open elevation profile and set a curve that goes over multiple layers.
3.) Play with the settings to have data of one rendered over the data of another (using fill below/above is the easiest).
4.) Change properties of a layer and notice the rendering order is different.

Versions

QGIS version3.99.0-Master
QGIS code revision4276573901d
 
Libraries
Qt version6.10.1
Python version3.14.2
GDAL version3.11.5 — Eganville
PROJ version9.6.2
EPSG Registry database versionv12.013 (2025-05-26)
GEOS version3.14.1-CAPI-1.20.5
SFCGAL versionNo support
GeographicLib versionNo support
SQLite version3.50.2
PDAL version2.9.3
PostgreSQL client version18.1
SpatiaLite version5.1.0
QWT version6.2.0
QScintilla2 version2.14.1
OS versionFedora Linux 43 (KDE Plasma Desktop Edition)
This copy of QGIS writes debugging output.
 
Active Python plugins
MetaSearch0.3.6
db_manager0.1.20
grassprovider2.12.99
processing2.12.99
qgis-layer-tree-tools1.4.0

Supported QGIS version

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

New profile

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugEither a bug report, or a bug fix. Let's hope for the latter!Profile tool

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions