Bug report #13746
Duplicating a layer doesn't copy scale dependent visibility
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | - | ||
Category: | Map Legend | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 21773 |
Description
To reproduce the bug :
- Make a layer
- Set a scale dependent visibility
- Duplicate the layer
The scale dependent visibility is not copied to the new layer.
History
#1 Updated by Giovanni Manghi about 9 years ago
- OS version deleted (
7) - Target version set to Future Release - Lower Priority
- Category set to Map Legend
- Affected QGIS version changed from 2.8.3 to master
- Operating System deleted (
Windows)
Confirmed on master and Linux.
#2 Updated by Sebastian Dietrich almost 9 years ago
Copy style and Paste style also do not operate on the scale based visibility settings. Duplicate layer internally uses these functions, hence the settings are not applied to the duplicated layer.
See PR 2487 for the solution.
#3 Updated by Anonymous almost 9 years ago
- Status changed from Open to Closed
Fixed in changeset fbb3dc5050491b94cd1dce61d327e494d2f3da30.