Skip to content

Commit

Permalink
OwPythagorasTree: Fix redraw crash when no data
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlin-policar committed Apr 27, 2019
1 parent 70e9330 commit b052335
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Orange/widgets/visualize/owpythagorastree.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ def update_size_calc(self):
self.invalidate_tree()

def redraw(self):
if self.data is None:
return
self.tree_adapter.shuffle_children()
self.invalidate_tree()

Expand Down

0 comments on commit b052335

Please sign in to comment.