mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Data file manager: Fix errors on systems with larger font sizes
This commit is contained in:
parent
0314d2d921
commit
320c11210f
@ -75,7 +75,7 @@ class Delegate(QStyledItemDelegate):
|
||||
if self.doc_size is None:
|
||||
d = self.doc_for_index(index)
|
||||
self.doc_size = d.size()
|
||||
ans.setHeight(max(self.doc_size.height() + 2, ans.height()))
|
||||
ans.setHeight(max(int(self.doc_size.height() + 2), ans.height()))
|
||||
return ans
|
||||
|
||||
def paint(self, painter, option, index):
|
||||
|
Loading…
x
Reference in New Issue
Block a user