qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.35k stars 2.97k forks source link

Feature counts show as "N/A" in layout exports when using themes #56749

Open philipjohnbarlow opened 6 months ago

philipjohnbarlow commented 6 months ago

What is the bug or the crash?

A colleague alerted me to this yesterday so I did some testing for myself.

Map layouts with a theme and rule based, categorised or graduated style for a vector layer will show feature counts for each grouping/range in the layout but once exported to an image or PDF the counts are replaced with an "N/A" label.

Removing the map theme fixes the issue.

image

Steps to reproduce the issue

  1. Create a project and add a base map and a vector layer to which you can apply a rule based, catergorised or graduated style to
  2. Apply one of the above style types
  3. Create at least one map theme in the project
  4. Create a new layout and set the map to follow the theme
  5. Add a legend for your vector layer and enable feature count from the legend properties
  6. Export to PDF or image

Versions

3.34.4 and 3.36.0 (RC)

Supported QGIS version

New profile

Additional context

No response

mastrolube commented 2 months ago

Hello, I'm on 3.34.7 and still have this problem.

Hope someone will notice that ticket and try to find a solution. Thanks!