Fix .margin() for CompondEdge

This commit is contained in:
Florian Festi 2016-11-26 13:16:33 +01:00
parent a0be85764a
commit f30221d265
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ class CompoundEdge(BaseEdge):
return self.types[-1].endwidth()
def margin(self):
return max((e.margin() for e in self.types))
return max((e.margin() + e.startwidth() for e in self.types)) - self.types[0].startwidth()
def __call__(self, length, **kw):
if length and abs(length - self.length) > 1E-5: