Browse Source

allow --encoding to work for non-patched builds

Khodeir-hubdoc 5 years ago
parent
commit
8199e57a54
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/converter.cc

+ 1 - 1
src/lib/converter.cc

@@ -36,9 +36,9 @@ namespace wkhtmltopdf {
 
 
 void ConverterPrivate::updateWebSettings(QWebSettings * ws, const settings::Web & s) const {
-#ifdef  __EXTENSIVE_WKHTMLTOPDF_QT_HACK__
 	if (!s.defaultEncoding.isEmpty())
 		ws->setDefaultTextEncoding(s.defaultEncoding);
+#ifdef  __EXTENSIVE_WKHTMLTOPDF_QT_HACK__
 	if (!s.enableIntelligentShrinking) {
 		ws->setPrintingMaximumShrinkFactor(1.0);
 		ws->setPrintingMinimumShrinkFactor(1.0);