Skip to content

Commit 3d8fbb6

Browse files
committed
Fix owcolor for python 3.10
1 parent 8503121 commit 3d8fbb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/widgets/data/owcolor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def paint(self, painter, option, index):
438438
strip = index.data(StripRole)
439439
rect = option.rect
440440
painter.drawPixmap(
441-
rect.x() + 13, rect.y() + (rect.height() - strip.height()) / 2,
441+
rect.x() + 13, int(rect.y() + (rect.height() - strip.height()) / 2),
442442
strip)
443443
super().paint(painter, option, index)
444444

0 commit comments

Comments
 (0)