Skip to content

Commit

Permalink
refactor chained() function
Browse files Browse the repository at this point in the history
  • Loading branch information
mozman committed Mar 10, 2024
1 parent 1ccf17c commit 4a4eed7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ezdxf/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,10 @@ def get_bbox_2d(entity: DXFEntity) -> BoundingBox2d:
for entity in entities:
if entity in selected:
continue
current_bbox = get_bbox_2d(entity)
entity_bbox = get_bbox_2d(entity)
for selected_bbox in selected.values():
if current_bbox.has_overlap(selected_bbox):
selected[entity] = current_bbox
if entity_bbox.has_overlap(selected_bbox):
selected[entity] = entity_bbox
restart = True
break

Expand Down

0 comments on commit 4a4eed7

Please sign in to comment.