Skip to content

Commit

Permalink
Merge pull request #21530 from dalthviz/fixes_issue_21520
Browse files Browse the repository at this point in the history
PR: Cast to `int` parameters used inside `ItemDelegate.sizeHint` return value (Widgets)
  • Loading branch information
ccordoba12 authored Nov 16, 2023
2 parents a5f329a + de7e1a1 commit e586ff8
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 e586ff8

Please sign in to comment.