Bug report #11459

Editing Composer legend while filtered does not work

Added by Alexandre Neto over 2 years ago. Updated over 1 year ago.

Status:Closed Start Date:10/21/2014
Priority:High Due date:
Assigned to:Martin Dobias % Done:


Category:Map Composer / Printing
Target version:Future Release - High Priority
Platform:Windows Pull Request or Patch supplied:No
Platform version: Affected version:master
Status info: Causes crash or corruption:No
Resolution: Tag:


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, 10/21/2014 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, 10/21/2014 09:11 am

Associated revisions

Revision c7204cc72285489461722fd5c1669310ac53edc7
Added by Nyall Dawson over 1 year ago

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


Updated by Alexandre Neto over 2 years ago

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

Updated by Martin Dobias over 2 years ago

  • Priority changed from Severe/Regression to High

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

Updated by J├╝rgen Fischer over 2 years ago

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

Updated by Lene Fischer about 2 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

Updated by Nyall Dawson over 1 year ago

  • Status changed from Open to Closed

Also available in: Atom