From ef3de3314c781c7f1abe90afde2160f91e3597d9 Mon Sep 17 00:00:00 2001 From: Trevor North Date: Wed, 2 Jan 2013 17:44:09 +0000 Subject: [PATCH] Pass page height through to print context from web frame printer This fixes issues with page breaks not being inserted. --- src/3rdparty/webkit/Source/WebKit/qt/Api/qwebframe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/3rdparty/webkit/Source/WebKit/qt/Api/qwebframe.cpp b/src/3rdparty/webkit/Source/WebKit/qt/Api/qwebframe.cpp index 2defee0f20b..4999318cc5a 100644 --- a/src/3rdparty/webkit/Source/WebKit/qt/Api/qwebframe.cpp +++ b/src/3rdparty/webkit/Source/WebKit/qt/Api/qwebframe.cpp @@ -229,7 +229,7 @@ QWebPrinterPrivate::QWebPrinterPrivate(const QWebFrame *f, QPaintDevice *printer int(printer->width() / zoomFactorX), int(printer->height() / zoomFactorY)); - printContext.begin(pageRect.width()); + printContext.begin(pageRect.width(), pageRect.height()); float pageHeight = 0; printContext.computePageRects(pageRect, /* headerHeight */ 0, /* footerHeight */ 0, /* userScaleFactor */ 1.0, pageHeight);