Commit 3aba9afa authored by Szabolcs David's avatar Szabolcs David Committed by Allan Sandfeld Jensen
Browse files

Fix printing of landscape orientation


QPageLayout::pageSize() is always defined in portrait orientation.
Removing margins without considering the actual orientation was incorrent.
Use QPageLayout::paintRect() instead.

Task-number: QTBUG-75092
Change-Id: I34c19d3f0587ae21da2d985e3107b6ec673f53d0
Reviewed-by: default avatarMichael Brüning <michael.bruning@qt.io>
parent 96fb3a30
Showing with 15 additions and 13 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment