Bug report #11089

Lock Layers does not persist through save in 2.5

Added by Andrew Carne almost 9 years ago. Updated almost 9 years ago.

Category:Map Composer/Printing
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 #:19422


In 2.5 (latest nightly, and at least several previous versions) it seems that the lock layers data for map layers in composers does not persist correctly when a saved project is opened. The lock layers flag will display correctly, however it will show all layers which were enabled when the project was saved, as opposed to the correct lock layers. Behaviour is correct in 2.4

This was tested in 599255c using the attached project file, and can easily be reproduced. In the print composer, only layer 1 (the blue rectangle) should be visible, however both layer 1 and layer 2 (the purple triangle) display.

Opening this file in 2.4.0 will correctly only show layer 1 in the composer.

The lock layers behaviour works fine in 2.5 during one session, and files saved in 2.5 open correctly in 2.4.

LockLayertest.zip (9.02 KB) Andrew Carne, 2014-08-21 10:38 AM

Associated revisions

Revision 709c2853
Added by Nyall Dawson almost 9 years ago

[composer] Fix regression in locked map layers (fix #11089)


#1 Updated by Nyall Dawson almost 9 years ago

  • Category set to Map Composer/Printing

#2 Updated by Nyall Dawson almost 9 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF