Revert "[win] fix bug 70256"

This reverts commit d7db5c35c2.
This commit is contained in:
SimplestStudio
2025-02-11 15:42:29 +02:00
parent 772979c56d
commit ef90815b04

View File

@ -456,13 +456,6 @@ QDialog::DialogCode PrintDialog::exec()
QPageSize ps(QSizeF(width, height), QPageSize::Millimeter);
m_printer->setPageSize(ps);
m_printer->setPageOrientation(pDevmode->dmOrientation == DMORIENT_PORTRAIT ? QPageLayout::Portrait : QPageLayout::Landscape);
HANDLE hPrinter = NULL;
std::wstring printerName = m_printer->printerName().toStdWString();
if (OpenPrinter(&printerName[0], &hPrinter, NULL)) {
DocumentProperties(parent_hwnd, hPrinter, &printerName[0], pDevmode, pDevmode, DM_IN_BUFFER | DM_OUT_BUFFER);
ClosePrinter(hPrinter);
}
GlobalUnlock(dlg.hDevMode);
}
exit_code = QDialog::DialogCode::Accepted;