Bug report #19401
Legend filter by map content not working as expected
|Affected QGIS version:||3.2||Regression?:||Yes|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||invalid|
|Crashes QGIS or corrupts data:||Yes||Copied to github as #:||27229|
I add a legend to the print composer, assign it to the map, it then will not filter its contents by the extents of the map it's associated with. It continues to show every layer and for layers which are classified, it shows every classification regardless of whether they appear on the map or not.
After playing around with the options a few times (auto-update on/off, 'update all', filter on/off) the window hangs without resolving.
I don't know if this is connected, but also importing a map as an item from a template, and then setting extents to map canvas causes the window to hang too.
#2 Updated by Giles Manners almost 2 years ago
I found out why it was happening to me - looking at the Items panel, it showed that there were two maps on the layout and the legend was referencing a spurious empty map that nobody seems to have created (not intentionally anyway), and this seems to have caused a glitch. We right clicked on the extra map, clicked delete, then deleted the legend and added a new legend - and now the filter works.
Thought I would post that in case anyone else has the same issue.