Fixes #9789: Fix rendering of cable traces ending at provider networks

This commit is contained in:
jeremystretch
2022-08-01 13:29:39 -04:00
parent 04fb0bd51c
commit 262a0cf397
4 changed files with 21 additions and 15 deletions

View File

@@ -369,14 +369,16 @@ class CableTraceSVG:
parent_objects = set(end.parent_object for end in far_ends)
self.draw_parent_objects(parent_objects)
# Render a far-end object not connected via a link (e.g. a ProviderNetwork or Site associated with
# a CircuitTermination)
elif far_ends:
# Attachment
attachment = self.draw_attachment()
self.connectors.append(attachment)
# ProviderNetwork
self.draw_parent_objects(set(end.parent_object for end in far_ends))
# Object
self.draw_parent_objects(far_ends)
# Determine drawing size
self.drawing = svgwrite.Drawing(