Bug report #13746

Duplicating a layer doesn't copy scale dependent visibility

Added by Nicolas Boisteault over 4 years ago. Updated over 4 years ago.

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.

Associated revisions

Revision a5b2a069
Added by Sebastian Dietrich over 4 years ago

made copy/paste style aware of scale based visibility (fixes #13746)

Revision fbb3dc50
Added by Matthias Kuhn over 4 years ago

Merge pull request #2487 from SebDieBln/CopyPasteScaleBasedVisibility

Make copy/paste style aware of scale based visibility (fixes #13746)

History

#1 Updated by Giovanni Manghi over 4 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 over 4 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 over 4 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF