Commit 95ccaef4 authored by Whitham D. Reeve II's avatar Whitham D. Reeve II

Fixed bug that affects closed polylines.

Original developer left out a condition in a trailing else to generate an additional line to close a polyline when specified.
parent 09bc0b37
...@@ -344,6 +344,8 @@ class DXFParser(object): ...@@ -344,6 +344,8 @@ class DXFParser(object):
next_point = points[index + 1] next_point = points[index + 1]
if point != next_point: if point != next_point:
self.lines.append(Line(point, next_point)) self.lines.append(Line(point, next_point))
if ("VERTEX_FLAGS" in params) and (params["VERTEX_FLAGS"] == "EXTRA_VERTEX"):
self.lines.append(Line(points[-1], points[0]))
self._open_sequence_items = [] self._open_sequence_items = []
self._open_sequence_params = {} self._open_sequence_params = {}
self._open_sequence = None self._open_sequence = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment