Skip to content

Commit f67101b

Browse files
erfansnrurban
authored andcommitted
Fix not obtaining the next owned entity when the ordering changed
GH PR #1117
1 parent 531b533 commit f67101b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dwg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ get_next_owned_entity (const Dwg_Object *restrict hdr,
12691269
{
12701270
Dwg_Object *obj;
12711271
if (_hdr->last_entity == NULL
1272-
|| current->handle.value >= _hdr->last_entity->absolute_ref)
1272+
|| current == _hdr->last_entity->obj)
12731273
return NULL;
12741274
obj = dwg_next_entity (current);
12751275
while (obj

0 commit comments

Comments
 (0)