mirror of https://github.com/vitalif/phantomjs
commit
c3c65df12d
|
@ -1441,11 +1441,12 @@ void QWebFrame::print(QPrinter* printer) const
|
||||||
void QWebFrame::print(QPrinter *printer, PrintCallback *callback) const
|
void QWebFrame::print(QPrinter *printer, PrintCallback *callback) const
|
||||||
{
|
{
|
||||||
QPainter painter;
|
QPainter painter;
|
||||||
if (!painter.begin(printer))
|
|
||||||
return;
|
|
||||||
|
|
||||||
HeaderFooter headerFooter(this, printer, callback);
|
HeaderFooter headerFooter(this, printer, callback);
|
||||||
|
|
||||||
|
if (!painter.begin(printer))
|
||||||
|
return;
|
||||||
|
|
||||||
const qreal zoomFactorX = (qreal)printer->logicalDpiX() / qt_defaultDpi();
|
const qreal zoomFactorX = (qreal)printer->logicalDpiX() / qt_defaultDpi();
|
||||||
const qreal zoomFactorY = (qreal)printer->logicalDpiY() / qt_defaultDpi();
|
const qreal zoomFactorY = (qreal)printer->logicalDpiY() / qt_defaultDpi();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue