diff options
Diffstat (limited to 'src/union.py')
-rw-r--r-- | src/union.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/union.py b/src/union.py index 05c3a2d..96016c9 100644 --- a/src/union.py +++ b/src/union.py @@ -49,6 +49,10 @@ class Union: def compute_draw(self, x, y): "Compute union subtree position" + + # Reinit size + self.dad.fontsize = const._person_fontsize + self.mum.fontsize = const._person_fontsize # Compute childs size size = 0 @@ -62,9 +66,8 @@ class Union: else: x = x - (size*const._person_width+(size-1)*wmargin)/2 - # Draw each child + # Compute draw for childs for c in self.childs: - # Draw the child c.compute_draw(x, y) size = c.size_to_draw() x = x + (size*const._person_width+size*wmargin) |