From ca8e54cc028cb070f4fe60315c1dbdb6fc8663bd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 24 Jun 2021 08:24:05 +0530 Subject: [PATCH] another py3.10 compat fix --- src/calibre/gui2/bars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/bars.py b/src/calibre/gui2/bars.py index 9be3723bc6..e2a9efda61 100644 --- a/src/calibre/gui2/bars.py +++ b/src/calibre/gui2/bars.py @@ -55,7 +55,7 @@ class RevealBar(QWidget): # {{{ painter = QPainter(self) pal = self.palette() col = pal.color(QPalette.ColorRole.Button) - rect.setLeft(rect.left() + (rect.width() * self._animated_size)) + rect.setLeft(rect.left() + int(rect.width() * self._animated_size)) painter.setClipRect(rect) painter.fillRect(self.rect(), col) # }}}