From 6501f90e9e2aee2911fe7610271c388da5d7e64f Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Tue, 13 Dec 2011 13:29:26 +1000 Subject: [PATCH] Add extra debugging messages for Mac printing --- SleepLib/loader_plugins/prs1_loader.cpp | 2 +- mainwindow.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SleepLib/loader_plugins/prs1_loader.cpp b/SleepLib/loader_plugins/prs1_loader.cpp index 72b3cf9e..f3db9f93 100644 --- a/SleepLib/loader_plugins/prs1_loader.cpp +++ b/SleepLib/loader_plugins/prs1_loader.cpp @@ -439,7 +439,7 @@ bool PRS1Loader::ParseSummary(Machine *mach, qint32 sequence, quint32 timestamp, if (mach->SessionExists(sequence)) return false; - if (size<40) + if (size<44-16) return false; Session *session=new Session(mach,sequence); diff --git a/mainwindow.cpp b/mainwindow.cpp index ddb3d903..26045523 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -765,12 +765,12 @@ void MainWindow::PrintReport(gGraphView *gv,QString name, QDate date) //QRect screen=QApplication::desktop()->screenGeometry(); QRect res=printer->pageRect(); - qDebug() << "X" << printer->logicalDpiX() << printer->physicalDpiX(); - qDebug() << "Y" << printer->logicalDpiY() << printer->physicalDpiY(); qDebug() << "Printer Resolution is" << res.width() << "x" << res.height(); - + qDebug() << "X DPI (log vs phys):" << printer->logicalDpiX() << printer->physicalDpiX(); + qDebug() << "Y DPI (log vs phys): " << printer->logicalDpiY() << printer->physicalDpiY(); + qDebug() << vscale << hscale; qDebug() << "res:" << printer->resolution() << "dpi" << float(res.width()) / float(res.height()); - + qDebug() << normal_height << "normal_height, font ascent" << fm2.ascent(); float printer_width=res.width(); float printer_height=res.height()-normal_height;