Navigation Menu

Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Properly use bottom margin to calculate the footer height.
Browse files Browse the repository at this point in the history
  • Loading branch information
milianw committed Nov 29, 2012
1 parent 4caa71a commit fd653fe
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -74,7 +74,7 @@ HeaderFooter::HeaderFooter(const QWebFrame* frame, QPrinter* printer, QWebFrame:
// find existing margins
printer->getPageMargins(&marginLeft, &marginTop, &marginRight, &marginBottom, QPrinter::DevicePixel);
const qreal oldMarginTop = marginTop;
const qreal oldMarginBottom = marginTop;
const qreal oldMarginBottom = marginBottom;

printer->getPageMargins(&marginLeft, &marginTop, &marginRight, &marginBottom, QPrinter::Point);
// increase margins to hold header+footer
Expand Down

0 comments on commit fd653fe

Please sign in to comment.