Fix fail to build on windows

This commit is contained in:
Claveau Joshua 2020-10-01 19:29:09 +02:00
parent 94e29ef749
commit 9dda3e5997

View File

@ -148,17 +148,17 @@ void ProjectPrintWindow::requestPaint()
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
#ifdef QT_DEBUG #ifdef QT_DEBUG
qDebug() << "--"; qDebug() << "--";
qDebug() << "DiagramPrintDialog::print printer_->resolution() before " << printer->resolution(); qDebug() << "DiagramPrintDialog::print printer_->resolution() before " << m_printer->resolution();
qDebug() << "DiagramPrintDialog::print screennumber " << QApplication::desktop()->screenNumber(); qDebug() << "DiagramPrintDialog::print screennumber " << QApplication::desktop()->screenNumber();
#endif #endif
QScreen *srn = QApplication::screens().at(QApplication::desktop()->screenNumber()); QScreen *srn = QApplication::screens().at(QApplication::desktop()->screenNumber());
qreal dotsPerInch = (qreal)srn->logicalDotsPerInch(); qreal dotsPerInch = (qreal)srn->logicalDotsPerInch();
printer->setResolution(dotsPerInch); m_printer->setResolution(dotsPerInch);
#ifdef QT_DEBUG #ifdef QT_DEBUG
qDebug() << "DiagramPrintDialog::print dotsPerInch " << dotsPerInch; qDebug() << "DiagramPrintDialog::print dotsPerInch " << dotsPerInch;
qDebug() << "DiagramPrintDialog::print printer_->resolution() after" << printer->resolution(); qDebug() << "DiagramPrintDialog::print printer_->resolution() after" << m_printer->resolution();
qDebug() << "--"; qDebug() << "--";
#endif #endif
#endif #endif