Windows: Fix printing.
Clear custom paper size flag in
QWin32PrintEnginePrivate::updateCustomPaperSize().
Breakage introduced by 3396ba5612 .
Task-number: QTBUG-35500
Change-Id: I7e7708444cd7201af35e0f5d9b16d6c73fee77f6
Reviewed-by: John Layt <jlayt@kde.org>
bb10
parent
fc10bfd550
commit
a935b3fbd8
|
|
@ -1959,8 +1959,9 @@ static void draw_text_item_win(const QPointF &pos, const QTextItemInt &ti, HDC h
|
|||
void QWin32PrintEnginePrivate::updateCustomPaperSize()
|
||||
{
|
||||
const uint paperSize = devMode->dmPaperSize;
|
||||
has_custom_paper_size = true;
|
||||
has_custom_paper_size = false;
|
||||
if (paperSize > 0 && mapDevmodePaperSize(paperSize) == QPrinter::Custom) {
|
||||
has_custom_paper_size = true;
|
||||
const QList<QPair<QSizeF, int> > paperSizes = printerPaperSizes(name);
|
||||
for (int i=0; i<paperSizes.size(); i++) {
|
||||
if ((uint)paperSizes.at(i).second == paperSize) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue