Skip to content

Commit af95531

Browse files
committed
fix build without patched Qt
This was broken since 96b03ae.
1 parent 3f85dd4 commit af95531

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/multipageloader.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,11 @@ ResourceObject::ResourceObject(MultiPageLoaderPrivate & mpl, const QUrl & u, con
213213
}
214214

215215
webPage.setNetworkAccessManager(&networkAccessManager);
216-
216+
#ifdef __EXTENSIVE_WKHTMLTOPDF_QT_HACK__
217217
double devicePixelRatio = multiPageLoader.dpi / 96.; // The used version of WebKit always renders at 96 DPI when no zoom is applied. It does not fully support a device pixel ratio != 1 natively.
218218
webPage.mainFrame()->setZoomFactor(devicePixelRatio * settings.zoomFactor); // Zoom in the page to achieve a higher DPI.
219219
webPage.setDevicePixelRatio(devicePixelRatio); // Fix CSS media queries (does not affect anything else).
220+
#endif
220221
}
221222

222223
/*!

0 commit comments

Comments
 (0)