Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Pass page height through to print context from web frame printer
Browse files Browse the repository at this point in the history
This fixes issues with page breaks not being inserted.
  • Loading branch information
Trevor North authored and james-emerton committed Nov 21, 2014
1 parent 6f1dabe commit ef3de33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/3rdparty/webkit/Source/WebKit/qt/Api/qwebframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ef3de33

Please sign in to comment.