Skip to content

Commit b052335

Browse files
OwPythagorasTree: Fix redraw crash when no data
1 parent 70e9330 commit b052335

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Orange/widgets/visualize/owpythagorastree.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ def update_size_calc(self):
224224
self.invalidate_tree()
225225

226226
def redraw(self):
227+
if self.data is None:
228+
return
227229
self.tree_adapter.shuffle_children()
228230
self.invalidate_tree()
229231

0 commit comments

Comments
 (0)