Bug report #6686

Embedded layers from projects with groups misbehaving

Added by John Tull about 12 years ago. Updated almost 9 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Project Loading/Saving
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:not reproducable
Crashes QGIS or corrupts data:No Copied to github as #:15854

Description

When I embed layers from an existing project, I get unusual and incorrect behavior when the embedded project file has layers in groups. Basically, grouped layers are added to the existing project correctly, but any ungrouped layers are placed within the last/lowest group from the original project file. I've attached a couple of screenshots to illustrate this. The first show the list of available groups and layers in the project being embedded. I've selected all and embedded them into the map legend/canvas. The second shot shows how these layers were handled with the top-most layer that was not grouped (Inventory) being placed into the "group1" group incorrectly. The group1 group is the "last" group in the embedded project.

If I save this project and reopen it, the groups and the layers correctly placed into their groups are shown, but the layer that was incorrectly placed into group1 is no longer in the project. This is shown in the third screenshot.

Screen_Shot_2012-11-13_at_12.22.04_PM.png - Embeddable layers dialog, all selected (249 KB) John Tull, 2012-11-13 12:27 PM

Screen_Shot_2012-11-13_at_12.23.29_PM.png - Layers embedded, ungrouped layer incorrectly grouped (411 KB) John Tull, 2012-11-13 12:27 PM

Screen_Shot_2012-11-13_at_12.24.24_PM.png - Project with embedded layers reopened, missing layer (390 KB) John Tull, 2012-11-13 12:27 PM


Related issues

Related to QGIS Application - Bug report #13913: Embed layers and groups does not work properly with layer... Closed 2015-11-30

History

#1 Updated by Jürgen Fischer over 10 years ago

  • Category set to Project Loading/Saving

#2 Updated by Sebastian Dietrich almost 9 years ago

I can not reproduce using current master (917dd055198f52b6288210d0a11f304aeacc2976). Can you test with master/latest nightly again?
If you still encounter the error, could you attach the project file you are embedding from?

#3 Updated by Giovanni Manghi almost 9 years ago

  • Status changed from Open to Feedback

#4 Updated by Giovanni Manghi almost 9 years ago

  • Resolution set to not reproducable
  • Status changed from Feedback to Closed

Sebastian Dietrich wrote:

I can not reproduce using current master (917dd055198f52b6288210d0a11f304aeacc2976). Can you test with master/latest nightly again?
If you still encounter the error, could you attach the project file you are embedding from?

closing for lack of feedback, please reopen if necessary.

Also available in: Atom PDF