Skip to content

Commit

Permalink
bugfix a null area item in a layout traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
sccolbert committed Jul 29, 2013
1 parent 2fd84fe commit 308164f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion enaml/layout/dock_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ def children(self):
""" Get the list of children of the area layout.
"""
return [self.item] + self.dock_bars
item = self.item
base = [item] if item is not None else []
return base + self.dock_bars


class _DockLayoutItem(object):
Expand Down

0 comments on commit 308164f

Please sign in to comment.