diff options
author | opiopan <opiopan@gmail.com> | 2019-03-31 18:16:34 +0900 |
---|---|---|
committer | opiopan <opiopan@gmail.com> | 2019-03-31 18:16:34 +0900 |
commit | 53816574a986722d7af26c5597248d9c96f31bd3 (patch) | |
tree | a2c5f2dc6f1da8f081eb173191ab456abb919b44 /gerberex/dxf_path.py | |
parent | 900d992fa3af05f93ac7a4cf717f28598e1a868d (diff) | |
download | pcb-tools-extension-53816574a986722d7af26c5597248d9c96f31bd3.tar.gz pcb-tools-extension-53816574a986722d7af26c5597248d9c96f31bd3.tar.bz2 pcb-tools-extension-53816574a986722d7af26c5597248d9c96f31bd3.zip |
fix a minor issue
Diffstat (limited to 'gerberex/dxf_path.py')
-rw-r--r-- | gerberex/dxf_path.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gerberex/dxf_path.py b/gerberex/dxf_path.py index b066b08..930d8d2 100644 --- a/gerberex/dxf_path.py +++ b/gerberex/dxf_path.py @@ -184,7 +184,7 @@ def generate_closed_paths(statements, error_range=0): working = [] for i in range(len(paths)): mergee = paths[i] - for j in range(i + 1, len(paths) - 1): + for j in range(i + 1, len(paths)): target = paths[j] if target.merge(mergee, error_range): break @@ -192,6 +192,5 @@ def generate_closed_paths(statements, error_range=0): working.append(mergee) prev_paths_num = len(paths) paths = working - return list(filter(lambda p: p.is_closed, paths)) |