Skip to content

Commit 8b87b4f

Browse files
committed
overlay: Handle invalid sizeHint
1 parent 2ba6781 commit 8b87b4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Orange/widgets/utils/overlay.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ def __layout(self):
150150
hpolicy = policy.horizontalPolicy()
151151
vpolicy = policy.verticalPolicy()
152152

153+
if not effectivesh.isValid():
154+
effectivesh = QSize(0, 0)
155+
vpolicy = hpolicy = QSizePolicy.Ignored
156+
153157
def getsize(hint, minimum, maximum, policy):
154158
if policy == QSizePolicy.Ignored:
155159
return maximum

0 commit comments

Comments
 (0)