-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
BugEither a bug report, or a bug fix. Let's hope for the latter!Either a bug report, or a bug fix. Let's hope for the latter!GUI/UXRelated to QGIS application GUI or User ExperienceRelated to QGIS application GUI or User ExperienceStyles
Description
What is the bug or the crash?
Within the graduated renderer panel, the 'legend format' is reset every time the classes are re-classified.
I believe this should not be the case. The 'legend format' should persist even after reclassification.
Steps to reproduce the issue
- Create a new vector layer with a 'double' field, add a couple of features. For example:
l = QgsVectorLayer("LineString?field=test:double", "test layer", "memory")
f1=QgsFeature()
f1.setAttributes([1.0])
f2=QgsFeature()
f2.setAttributes([2.0])
with edit(l):
l.addFeature(f1)
l.addFeature(f2)
QgsProject().instance().addMapLayer(l)
-
Open the layer styling panel.
-
Set the layer styling to 'Graduated'
-
Set value to field of interest (with above examle it will be 'test')
-
Press 'Classify' -> all normal
-
Modify the 'Legend format' -> the labels update. All normal.
-
Press 'Classify' again -> the 'Legend format' is reset.
I believe that the 'Legend format' is not meant to be reset like this
Versions
QGIS version | 3.44.3-Solothurn |
QGIS code revision | 1d1d67e9edd |
Libraries | |
Qt version | 5.15.13 |
Python version | 3.12.11 |
GDAL version | 3.11.3 — Eganville |
PROJ version | 9.6.2 |
EPSG Registry database version | v12.013 (2025-05-26) |
GEOS version | 3.13.1-CAPI-1.19.2 |
SQLite version | 3.50.4 |
PDAL version | 2.9.0 |
PostgreSQL client version | 17.3 |
SpatiaLite version | 5.1.0 |
QWT version | 6.3.0 |
QScintilla2 version | 2.14.1 |
OS version | Windows 11 Version 2009 |
Active Python plugins | |
wntrqgis | 0.3.0 |
db_manager | 0.1.20 |
grassprovider | 2.12.99 |
MetaSearch | 0.3.6 |
processing | 2.12.99 |
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
Metadata
Metadata
Assignees
Labels
BugEither a bug report, or a bug fix. Let's hope for the latter!Either a bug report, or a bug fix. Let's hope for the latter!GUI/UXRelated to QGIS application GUI or User ExperienceRelated to QGIS application GUI or User ExperienceStyles