Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.3.0
-
None
-
Windows
Description
The right and top margins get swapped.
If you enter the following margins in a QPageSetupDialog window:
Left: 1
Top: 2
Right: 3
Bottom: 4
then get the margins back from the dialog, you get these:
Left: 1
Top: 3
Right: 2
Bottom: 4
It looks like only two lines of Qt source code need to be changed. In QPageSetupDialog_win.cpp
Currently lines 140 and 141:
d->printer->setPageMargins(QMarginsF(psd.rtMargin.left / multiplier, psd.rtMargin.right / multiplier,
psd.rtMargin.top / multiplier, psd.rtMargin.bottom / multiplier),
Change to:
d->printer->setPageMargins(QMarginsF(psd.rtMargin.left / multiplier, psd.rtMargin.top / multiplier,
psd.rtMargin.right / multiplier, psd.rtMargin.bottom / multiplier),