diff --git a/pyface/ui/qt4/code_editor/gutters.py b/pyface/ui/qt4/code_editor/gutters.py index 6b74790d9..197bbd11a 100644 --- a/pyface/ui/qt4/code_editor/gutters.py +++ b/pyface/ui/qt4/code_editor/gutters.py @@ -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,