Rule based symbology sorting with all fields in legend when only linked maps is ticked #60383
Open
2 tasks done
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
Symbology
Related to vector layer symbology or renderers
What is the bug or the crash?
The issue occurs when using rule based symbologies with a greater number of classes then displayed on a map. When you go to the legend in a print layout, and tick 'Only show items in linked maps' the legend will hide any rule based classes that are not shown in the map. However, when trying to rearrange the order of any remaining legend items you must click the arrows extra times before they reorganise, I believe that this is due to them rearranging based on all labels, rather than only the labels shown in the map.
Steps to reproduce the issue
Open a the project 'Broken Legend'
Open Print Layout 'map1'
In the 'Item Properties' for the legend try moving SC down to the bottom. It will take several clicks of the down arrow.
If you untick the 'Only show inside linked maps' button you will see that it has reordered the whole list of possible symbologies.
BrokenLegend.zip
Versions
QGIS version
3.40.3-Bratislava
QGIS code revision
2a274ab
Libraries
Qt version
5.15.13
Python version
3.12.8
GDAL/OGR version
3.10.1
PROJ version
9.5.1
EPSG Registry database version
v11.022 (2024-11-05)
GEOS version
3.13.0-CAPI-1.19.0
SQLite version
3.46.1
PDAL version
2.8.3
PostgreSQL client version
unknown
SpatiaLite version
5.1.0
QWT version
6.3.0
QScintilla2 version
2.14.1
OS version
Windows 11 Version 2009
Active Python plugins
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: