Windows: Fix assignment of margins in QPageSetupDialog.
Task-number: QTBUG-40061 Change-Id: Id5c952a7d6280f2ab7180bff01911d6cffe57034 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
parent
b0d0a2680a
commit
fac1d4d17e
@ -137,9 +137,8 @@ int QPageSetupDialog::exec()
|
||||
QDialog::setVisible(false);
|
||||
if (result) {
|
||||
engine->setGlobalDevMode(psd.hDevNames, psd.hDevMode);
|
||||
d->printer->setPageMargins(QMarginsF(psd.rtMargin.left / multiplier, psd.rtMargin.right / multiplier,
|
||||
psd.rtMargin.top / multiplier, psd.rtMargin.bottom / multiplier),
|
||||
layout.units());
|
||||
const QMarginsF margins(psd.rtMargin.left, psd.rtMargin.top, psd.rtMargin.right, psd.rtMargin.bottom);
|
||||
d->printer->setPageMargins(margins / multiplier, layout.units());
|
||||
|
||||
// copy from our temp DEVMODE struct
|
||||
if (!engine->globalDevMode() && hDevMode) {
|
||||
|
Loading…
Reference in New Issue
Block a user