Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print layout legend panel - feature count re-appears after saving & opening the project again #57501

Closed
2 tasks done
meyerlor opened this issue May 21, 2024 · 5 comments
Closed
2 tasks done
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks

Comments

@meyerlor
Copy link

meyerlor commented May 21, 2024

What is the bug or the crash?

In my print layouts, i do not want to show the feature count of the used layers. I select all of them and disable the feature count (in print-layout -> Legend-> Item properties). I save the project - closing QGIS and opening it (and the print layout) again makes the feature count re-appear again. This is painful, because with the feature count, the whole legend won't fit on the paper anymore. Disabling it on all my print layouts is a tedious manual process, which i'd like to avoid.

Addendum:
In the Layer Panel (not in the print layout) the feature count is enabled (and should stay this way)

Steps to reproduce the issue

  1. Print LAyout -> Legend -> Select Layers -> Disable Feature Count for Layers
  2. Save Project/Print Layout, Close QGIS
  3. Open QGIS/Project
  4. In the Print Layout, the Layers show again the feature count

Versions

<style type="text/css"> p, li { white-space: pre-wrap; } </style>
QGIS version 3.34.7-Prizren QGIS code revision 6f7d735
Qt version 5.15.13
Python version 3.12.3
GDAL/OGR version 3.9.0
PROJ version 9.4.0
EPSG Registry database version v11.004 (2024-02-24)
GEOS version 3.12.1-CAPI-1.18.1
SQLite version 3.45.1
PDAL version 2.6.3
PostgreSQL client version 16.2
SpatiaLite version 5.1.0
QWT version 6.2.0
QScintilla2 version 2.14.1
OS version Windows 10 Version 2009
       
Active Python plugins
AnotherDXF2Shape 1.3.1
autoSaver 2.9
lizmap 4.3.11
PluginLoadTimes 4.0.2
qfieldsync v4.9.1
quick_map_services 0.19.34
simplesvg 3.0.3
db_manager 0.1.20
processing 2.12.99
QGIS version 3.34.7-Prizren QGIS code revision [6f7d735](https://github.com/qgis/QGIS/commit/6f7d735c) Qt version 5.15.13 Python version 3.12.3 GDAL/OGR version 3.9.0 PROJ version 9.4.0 EPSG Registry database version v11.004 (2024-02-24) GEOS version 3.12.1-CAPI-1.18.1 SQLite version 3.45.1 PDAL version 2.6.3 PostgreSQL client version 16.2 SpatiaLite version 5.1.0 QWT version 6.2.0 QScintilla2 version 2.14.1 OS version Windows 10 Version 2009

Active Python plugins
AnotherDXF2Shape
1.3.1
autoSaver
2.9
lizmap
4.3.11
PluginLoadTimes
4.0.2
qfieldsync
v4.9.1
quick_map_services
0.19.34
simplesvg
3.0.3
db_manager
0.1.20
processing
2.12.99

Supported QGIS version

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

New profile

Additional context

No response

@meyerlor meyerlor added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 21, 2024
@agiudiceandrea agiudiceandrea added the Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks label May 21, 2024
@agiudiceandrea
Copy link
Contributor

@meyerlor, thanks for reporting. I cannot replicate the reported behaviour using a simple project and layer.

Video_2024-05-21_230429.mp4

Please provide a minimal project + layer with which the issue occur.

@agiudiceandrea agiudiceandrea added the Feedback Waiting on the submitter for answers label May 21, 2024
@meyerlor
Copy link
Author

meyerlor commented May 22, 2024

Here is a minimal project file:
Test_Print.zip

Note: in line 71 is (i think) the entry regarding the legend in the print layout. showFeatureCount is set to 1 - nothing in my QGIS can change that value. If i manipulate that value with a text editor and set it to 0, open the project in QGIS (and then the print layout), the feature count is still shown. Clicking on "save Project" sets the showFeatureCount setting again back to 1

Update: Setting the value to "false" with a text editor brings the desired result - now feature count shown in the legend when opening the project!

@agiudiceandrea
Copy link
Contributor

@meyerlor, the layer is missing. Anyway it seems to me there is no issue in the provided project.
When I open the project the layer's features count is shown in the legend according to the setting. If I unselect the layer's features count setting, then the layer's features count is not shown in the legend. If I save the project, close the project and reopen the project, then the layer's features count is not shown in the legend according to the setting.

Video_2024-05-23_223055.mp4

@meyerlor
Copy link
Author

Hm weird. I once more tried it with a fresh profile and the issue is no more (i already did before opening the ticket, but somehow the issue was not solved then). Sorry for the trouble!

@agiudiceandrea
Copy link
Contributor

@meyerlor, you are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

No branches or pull requests

2 participants