Skip to content

Commit

Permalink
Ensure layout items are refreshed before printing
Browse files Browse the repository at this point in the history
convenient eg when expression or HTML based items are available
Thanks to @mickmm
  • Loading branch information
DelazJ committed Feb 10, 2021
1 parent 25c4a1b commit 2fdeccf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ def exportCompo(self, cView, folder, title, extension):
# Do the export process
exporter = QgsLayoutExporter(cView)

# Refresh the layout before printing
exporter.layout().refresh()

if myAtlas.enabled():
feedback = QgsFeedback()

Expand Down

0 comments on commit 2fdeccf

Please sign in to comment.