diff --git a/src/ezdxf/select.py b/src/ezdxf/select.py index 099f5c655..938e0cd04 100644 --- a/src/ezdxf/select.py +++ b/src/ezdxf/select.py @@ -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