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

Layer grouping bug in legend #15839

Closed
qgib opened this issue Nov 8, 2012 · 2 comments
Closed

Layer grouping bug in legend #15839

qgib opened this issue Nov 8, 2012 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Map and Legend Related to map or legend rendering

Comments

@qgib
Copy link
Contributor

qgib commented Nov 8, 2012

Author Name: Larry Shaffer (Larry Shaffer)
Original Redmine Issue: 6665
Affected QGIS version: master
Redmine category:map_legend


Not sure where this may affect functionality beyond the QgsApp::duplicateLayers() method, but...

When using duplicateLayers() on a selection inside a group, where that group has more than 4 items and the selection is after the fourth item, the duplicated layer(s) is added to the QgsMapLayerRegistry, but not added to the legend. If any layer past 4 items is moved to one of the first 4 item placements (i.e. directly under the grouping) then the layer works properly when duplicated. I have no idea why the number of layers in a grouping would have any affect on adding layers to QgsMapLayerRegistry.

It seems to have no bearing on what type of layer is being duplicated, or which group it is associated with. Currently, duplicateLayers() works around this by manually adding the QgsLegendLayer(s) after determining that those layers did not get added to the legend.

@qgib
Copy link
Contributor Author

qgib commented Nov 8, 2012

Author Name: Larry Shaffer (Larry Shaffer)


  • fixed_version_id was configured as Future Release - Nice to have

@qgib
Copy link
Contributor Author

qgib commented Nov 11, 2015

Author Name: Médéric RIBREUX (Médéric RIBREUX)


Hello, bug triage...

I can't reproduce it under QGIS 2.12 and master. It seems to have been fixed because I can duplicate anything in a group whatever layer is selected.

I am closing this bug...


  • resolution was changed from to fixed/implemented
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Map and Legend Related to map or legend rendering labels May 24, 2019
@qgib qgib added this to the Future Release - Nice to have milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
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! Map and Legend Related to map or legend rendering
Projects
None yet
Development

No branches or pull requests

1 participant