Skip to content

Rule based symbology sorting with all fields in legend when only linked maps is ticked #60383

Open
@swood44

Description

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

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

New profile

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

BugEither a bug report, or a bug fix. Let's hope for the latter!Print LayoutsRelated to QGIS Print Layouts, Atlas or Reporting frameworksSymbologyRelated to vector layer symbology or renderers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions