Browse Source

Apply settings also for headers and footers.

Artem Butusov 11 years ago
parent
commit
15bc5a0676
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/lib/pdfconverter.cc

+ 2 - 0
src/lib/pdfconverter.cc

@@ -639,6 +639,7 @@ void PdfConverterPrivate::endPage(PageObject & object, bool hasHeaderFooter, int
 	//object.headers[objectPage];
 	if (currentHeader) {
 		QWebPage * header = currentHeader;
+		updateWebSettings(header->settings(), object.settings.web);
 		painter->save();
 		painter->resetTransform();
 		double spacing = s.header.spacing * printer->height() / printer->heightMM();
@@ -667,6 +668,7 @@ void PdfConverterPrivate::endPage(PageObject & object, bool hasHeaderFooter, int
 
 	if (currentFooter) {
 		QWebPage * footer=currentFooter;
+		updateWebSettings(footer->settings(), object.settings.web);
 		painter->save();
 		painter->resetTransform();
 		double spacing = s.footer.spacing * printer->height() / printer->heightMM();