Skip to content

Commit

Permalink
Merge pull request wkhtmltopdf#4 from jangid/master
Browse files Browse the repository at this point in the history
Fixed URI related issues
  • Loading branch information
antialize committed Sep 30, 2011
2 parents 6ffcf3c + a97c797 commit 919699d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/pdfconverter.cc
Expand Up @@ -412,8 +412,11 @@ void PdfConverterPrivate::findLinks(QWebFrame * frame, QVector<QPair<QWebElement
local.push_back( qMakePair(elm, href.toString()) );
}
}
} else if (uexternal)
external.push_back( qMakePair(elm, href.toString() ) );
} else if (uexternal) {
// pass the unresolved url to WebKit. WebKit will resolve it
// depending upon the type of url - filepath, web-uri etc.
external.push_back( qMakePair(elm, h) );
}
}
}
}
Expand Down

0 comments on commit 919699d

Please sign in to comment.