This commit is contained in:
Kovid Goyal 2019-06-27 12:07:10 +05:30
parent 9805f3a644
commit 371e5f9813
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -435,7 +435,7 @@ class HTMLDisplay(QTextBrowser):
def __init__(self, parent=None):
QTextBrowser.__init__(self, parent)
font = self.font()
f = QFontInfo(self.font())
f = QFontInfo(font)
delta = tweaks['change_book_details_font_size_by'] + 1
if delta:
font.setPixelSize(f.pixelSize() + delta)