Bug report #21624

Layouts with variables/expressions do not update properly after page format change

Added by Andreas Neumann about 5 years ago. Updated about 5 years ago.

Status:Closed
Priority:High
Assignee:-
Category:Map Composer/Printing
Affected QGIS version:3.7(master) Regression?:Yes
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29440

Description

When using variables and expressions in a layout in order to position and size items (e.g. @layout_pagewidth and @layout_pageheight in combination with an expression), then the items do not update properly after a change of page size or orientation.

The sample project contains 2 layouts: "Test" and "Test 2". The first contains only a rectangle, the second one a full layout with all items positioned and sized dynamically.

In QGIS master (3.7) and LT version (3.4 master) it updates, after pressing the "Refresh View" button.

This used to work in the past. The issue did once appear, was fixed, but now it reincarnated again.

layout_update_issues.qgz - Project with 2 layouts demonstrating the issue (7 KB) Andreas Neumann, 2019-03-20 08:42 AM

Associated revisions

Revision 10c61eab
Added by Nyall Dawson about 5 years ago

[layouts] Refresh layout automatically on page size/orientation change

Fixes #21624

Revision 63137938
Added by Nyall Dawson about 5 years ago

[layouts] Refresh layout automatically on page size/orientation change

Fixes #21624

Revision db751220
Added by Nyall Dawson about 5 years ago

[layouts] Refresh layout automatically on page size/orientation change

Fixes #21624

Revision 199cd8e7
Added by Nyall Dawson about 5 years ago

[layouts] Refresh layout automatically on page size/orientation change

Fixes #21624

Revision ef4a5788
Added by Nyall Dawson about 5 years ago

[layouts] Refresh layout automatically on page size/orientation change

Fixes #21624

History

#1 Updated by Giovanni Manghi about 5 years ago

  • Priority changed from Normal to High

#2 Updated by Nyall Dawson about 5 years ago

  • Status changed from Open to In Progress

#3 Updated by Nyall Dawson about 5 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

Also available in: Atom PDF