Fix default segment attribute value

This commit is contained in:
Kim Silkebækken 2012-11-08 14:05:16 +01:00
parent 59a760c3c6
commit 20892b14d8
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class Segment:
'''
if self.parent and self._attr is None:
return self.parent.attr
return self._attr if self._attr is not None else 0
return self._attr if self._attr is not None else False
@property
def side(self):