correct type for linenumbers in codeeditor
This commit is contained in:
parent
258922772e
commit
ec8fafcc9c
@ -237,7 +237,7 @@ class CodeEditor(QtWidgets.QPlainTextEdit):
|
||||
if block.isVisible() and (bottom >= evt.rect().top()):
|
||||
number = str(block_number + 1)
|
||||
painter.setPen(QtCore.Qt.black)
|
||||
painter.drawText(0, top, self.current_linenumber.width() - 3, height,
|
||||
painter.drawText(0, int(top), self.current_linenumber.width() - 3, height,
|
||||
QtCore.Qt.AlignRight, number)
|
||||
|
||||
block = block.next()
|
||||
|
Loading…
Reference in New Issue
Block a user