Skip to content

Commit 3be4eee

Browse files
erfansnrurban
authored andcommitted
Fix not obtaining the next owned entity when the ordering changed
GH PR #1117
1 parent 8ae6720 commit 3be4eee

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
@@ -1264,7 +1264,7 @@ get_next_owned_entity (const Dwg_Object *restrict hdr,
12641264
{
12651265
Dwg_Object *obj;
12661266
if (_hdr->last_entity == NULL
1267-
|| current->handle.value >= _hdr->last_entity->absolute_ref)
1267+
|| current == _hdr->last_entity->obj)
12681268
return NULL;
12691269
obj = dwg_next_entity (current);
12701270
while (obj

0 commit comments

Comments
 (0)