Bug report #11459

Editing Composer legend while filtered does not work

Added by Alexandre Neto over 9 years ago. Updated about 8 years ago.

Status:Closed
Priority:High
Assignee:Martin Dobias
Category:Map Composer/Printing
Affected QGIS version:master Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:19735

Description

In Print Composer, if a legend is using filter my map content try to edit one of the legend elements migth lead to undesired results. This is true for both editing the lable, deleting legend items or reordering it.

In the images below I have tried to change a item "RECOLTE" name to "RECOLTE_2", and as you can see it changes another item instead. I believe this is something to do with the legenf item idex, since the item I was trying to edit is in the third line when the legend is filtered, and the edited item is in the same position when the legend is not filtered

To replicate, create a categorized view of any layer and create a map with it. Filter legend to map content and zoom to an area where some categories are filtered. Now try to edit labels, delete items or reorder them.

Legend_edit_while_filtered.PNG - This is the legend filtered, the RECOLTE item label has been changed to RECOLTE_2 (50.1 KB) Alexandre Neto, 2014-10-21 09:11 AM

Legend_after_edit_not_filtered.PNG - Wihtout the filter one can see that other item has been changed instead (40.2 KB) Alexandre Neto, 2014-10-21 09:11 AM

Associated revisions

Revision c7204cc7
Added by Nyall Dawson about 8 years ago

Fix editing composer legend titles while filtering enabled (fix #11459)

History

#1 Updated by Alexandre Neto over 9 years ago

Forgot to say that I was using QGIS 2.5 962a7d9. So changes might have been done in the meanwhile.

#2 Updated by Martin Dobias over 9 years ago

  • Priority changed from Severe/Regression to High

Lowering priority as this is not a blocker (editing works when filtering is turned off)

#3 Updated by Jürgen Fischer over 9 years ago

  • Target version changed from Version 2.6 to Future Release - High Priority

#4 Updated by Lene Fischer about 9 years ago

Same issue in 2.6.1
When I edit a filtered version of the legend, is act as if it is unfiltered

Having a list with 4 posts
Filtering and now see post 1 and 4 - viewing only 2 posts
Try to edit post 4 - nothing change
Unfilter and post no. 2 has the changes.
See video http://screencast.com/t/okfwS2a8m

#5 Updated by Nyall Dawson about 8 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF