Skip to content

Commit 86aa652

Browse files
committed
Explicitly convert float to int. (#1176)
1 parent 03c473d commit 86aa652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyface/ui/qt4/code_editor/gutters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def paintEvent(self, event):
133133
if block.isVisible() and bottom >= event.rect().top():
134134
painter.drawText(
135135
0,
136-
top,
136+
int(top),
137137
self.width() - 2,
138138
self.fontMetrics().height(),
139139
QtCore.Qt.AlignmentFlag.AlignRight,

0 commit comments

Comments
 (0)