From 9dda3e5997647a0bfaf13f9df542e414bef33cf9 Mon Sep 17 00:00:00 2001 From: Claveau Joshua Date: Thu, 1 Oct 2020 19:29:09 +0200 Subject: [PATCH] Fix fail to build on windows --- sources/print/projectprintwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/print/projectprintwindow.cpp b/sources/print/projectprintwindow.cpp index b2ae84650..4c1a7b52a 100644 --- a/sources/print/projectprintwindow.cpp +++ b/sources/print/projectprintwindow.cpp @@ -148,17 +148,17 @@ void ProjectPrintWindow::requestPaint() #ifdef Q_OS_WIN #ifdef QT_DEBUG 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(); #endif QScreen *srn = QApplication::screens().at(QApplication::desktop()->screenNumber()); qreal dotsPerInch = (qreal)srn->logicalDotsPerInch(); - printer->setResolution(dotsPerInch); + m_printer->setResolution(dotsPerInch); #ifdef QT_DEBUG qDebug() << "DiagramPrintDialog::print dotsPerInch " << dotsPerInch; - qDebug() << "DiagramPrintDialog::print printer_->resolution() after" << printer->resolution(); + qDebug() << "DiagramPrintDialog::print printer_->resolution() after" << m_printer->resolution(); qDebug() << "--"; #endif #endif