This commit is contained in:
Kovid Goyal 2012-03-10 11:53:06 +05:30
parent e7fa8fd894
commit 17c01d5c97

View File

@ -689,7 +689,6 @@ class DocumentView(QWebView): # {{{
self.manager.load_started()
self.loading_url = QUrl.fromLocalFile(path)
if has_svg:
prints('Rendering as XHTML...')
self.setContent(QByteArray(html.encode(path.encoding)), mt, QUrl.fromLocalFile(path))
else:
self.setHtml(html, self.loading_url)