Bug report #16226

Map Settings variables are not updating

Added by Alexandre Neto almost 8 years ago. Updated about 6 years ago.

Status:Open
Priority:Normal
Assignee:Nyall Dawson
Category:Map Composer/Printing
Affected QGIS version:3.3(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 #:24136

Description

Maybe I'm missing something here but seems that the Map Settings variables of map items in the print composer are not being updated when the map item changes.

It appears to be just a display problem. Using one of the Map Settings variables in an expression works as expected.

To recreate the problem:
- Open the project in attachment, open "composition 1" in the Print Composer;
- Select the Map Item and check item properties panel;
- Confirm that the map item scale and the Map Settings' map_scale variable match;
- Change the map item scale
- And see that none of the Map settings variables are updated.

This affects QGIS 2.18 and QGIS 2.99 (not sure about previous versions)

Screenshot_from_2017-02-23_11-02-58.png - Initial map, variables match the the map item scale properties (162 KB) Alexandre Neto, 2017-02-23 03:16 AM

Screenshot_from_2017-02-23_11-04-23.png - Map was zoomed out, scale changed, the scale variable display didn't (428 KB) Alexandre Neto, 2017-02-23 03:16 AM

map_settings_variables.qgs (7.55 KB) Alexandre Neto, 2017-02-23 03:16 AM

History

#1 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No
  • Regression? set to No

#2 Updated by Alexandre Neto about 6 years ago

  • Affected QGIS version changed from master to 3.3(master)
  • Description updated (diff)

This issue is still present in 3.3.

The map settings variables on the map item properties dialog are not updated when the map item changes, deselecting the map item and select it again fixes it.

Also available in: Atom PDF