Skip to content

Commit bb57c81

Browse files
authored
Merge pull request #6293 from markotoplak/color-310
[FIX] Fix Color for python 3.10
2 parents 8503121 + 3d8fbb6 commit bb57c81

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)