Skip to content

Commit

Permalink
Widgets: Cast to int parameters used inside ItemDelegate.sizeHint ret…
Browse files Browse the repository at this point in the history
…urn value
  • Loading branch information
dalthviz committed Nov 15, 2023
1 parent a5f329a commit de7e1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/widgets/helperwidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def sizeHint(self, option, index):
doc.setHtml(options.text)
doc.setTextWidth(options.rect.width())

return QSize(doc.idealWidth(), doc.size().height())
return QSize(int(doc.idealWidth()), int(doc.size().height()))


class IconLineEdit(QLineEdit):
Expand Down

0 comments on commit de7e1a1

Please sign in to comment.