Skip to content

Commit

Permalink
Explicitly convert float to int. (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
corranwebster committed Nov 14, 2022
1 parent 03c473d commit 86aa652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyface/ui/qt4/code_editor/gutters.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def paintEvent(self, event):
if block.isVisible() and bottom >= event.rect().top():
painter.drawText(
0,
top,
int(top),
self.width() - 2,
self.fontMetrics().height(),
QtCore.Qt.AlignmentFlag.AlignRight,
Expand Down

0 comments on commit 86aa652

Please sign in to comment.