From 67ad5304920f2dfee49fd8da7bd32d0dac2d9e53 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 9 Jan 2022 05:28:21 +0530 Subject: [PATCH] py310: more float->int goodness --- src/calibre/gui2/tag_mapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tag_mapper.py b/src/calibre/gui2/tag_mapper.py index a1d62d80a1..5c660a2eb4 100644 --- a/src/calibre/gui2/tag_mapper.py +++ b/src/calibre/gui2/tag_mapper.py @@ -250,7 +250,7 @@ class Delegate(QStyledItemDelegate): if width and width != st.textWidth(): st.setTextWidth(width) br = st.size() - return QSize(br.width() + self.MARGIN, br.height() + self.MARGIN) + return QSize(int(br.width() + self.MARGIN), int(br.height() + self.MARGIN)) def paint(self, painter, option, index): QStyledItemDelegate.paint(self, painter, option, index)